From f9f8ded7f0a691c0b46ccff596944ef1b06cf8a8 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 29 Dec 2008 11:33:51 +0000 Subject: Add a more generic auth callback function. You should be able to obtain passwords or usernames with this function. Signed-off-by: Andreas Schneider git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@198 7dcaeef0-15fb-0310-b436-a5af3365683c --- include/libssh/priv.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include/libssh/priv.h') diff --git a/include/libssh/priv.h b/include/libssh/priv.h index c7afb423..34731a69 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 */ -- cgit