diff options
author | Andreas Schneider <mail@cynapses.org> | 2008-12-29 11:33:51 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2008-12-29 11:33:51 +0000 |
commit | f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8 (patch) | |
tree | 592e5ac919e74c6c44bc2762918de2eac0b45f63 /include/libssh/priv.h | |
parent | 6ea38880543478fb7d23de731f56fbe33632f5f7 (diff) | |
download | libssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.tar.gz libssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.tar.xz libssh-f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8.zip |
Add a more generic auth callback function.
You should be able to obtain passwords or usernames with this
function.
Signed-off-by: Andreas Schneider <mail@cynapses.org>
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@198 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index c7afb42..34731a6 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -228,7 +228,8 @@ struct ssh_options_struct { int use_nonexisting_algo; /* if user sets a not supported algorithm for kex, don't complain */ char *wanted_methods[10]; /* the kex methods can be choosed. better use the kex fonctions to do that */ void *wanted_cookie; /* wants a specific cookie to be sent ? if null, generate a new one */ - void *passphrase_function; /* this functions will be called if a keyphrase is needed. look keyfiles.c for more info */ + ssh_auth_callback auth_function; /* this functions will be called if e.g. a keyphrase is needed. */ + void *auth_userdata; void (*connect_status_function)(void *arg, float status); /* status callback function */ void *connect_status_arg; /* arbitrary argument */ long timeout; /* seconds */ |