Added stroke user-creds command, to set username/password for a connection.

This commit is contained in:
Tobias Brunner
2012-04-17 14:20:58 +02:00
parent 7b00fdeb84
commit 9f1b303afc
7 changed files with 204 additions and 2 deletions
@@ -1,4 +1,5 @@
/*
* Copyright (C) 2012 Tobias Brunner
* Copyright (C) 2008 Martin Willi
* Hochschule fuer Technik Rapperswil
*
@@ -52,6 +53,15 @@ struct stroke_config_t {
*/
void (*del)(stroke_config_t *this, stroke_msg_t *msg);
/**
* Set the username and password for a connection in this backend.
*
* @param msg received stroke message
* @param prompt I/O channel to prompt for the password
*/
void (*set_user_credentials)(stroke_config_t *this, stroke_msg_t *msg,
FILE *prompt);
/**
* Destroy a stroke_config instance.
*/