diff options
author | milo <milo@r0ot.me> | 2011-02-08 00:40:18 +0100 |
---|---|---|
committer | milo <milo@r0ot.me> | 2011-02-10 14:39:20 +0100 |
commit | 3c0a4781e49a4912e191b20ea8ccaeb884eb9dcd (patch) | |
tree | 12da3549867512351a797bfa571f841b1d214708 /include/libssh/auth.h | |
parent | 32e23a25da4e7d23bdede1cee4cadc6c80306c23 (diff) | |
download | libssh-3c0a4781e49a4912e191b20ea8ccaeb884eb9dcd.tar.gz libssh-3c0a4781e49a4912e191b20ea8ccaeb884eb9dcd.tar.xz libssh-3c0a4781e49a4912e191b20ea8ccaeb884eb9dcd.zip |
Added the keyboard-interactive authentication method
Diffstat (limited to 'include/libssh/auth.h')
-rw-r--r-- | include/libssh/auth.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/libssh/auth.h b/include/libssh/auth.h index 343b3091..c2fba2af 100644 --- a/include/libssh/auth.h +++ b/include/libssh/auth.h @@ -29,6 +29,27 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_failure); SSH_PACKET_CALLBACK(ssh_packet_userauth_success); SSH_PACKET_CALLBACK(ssh_packet_userauth_pk_ok); SSH_PACKET_CALLBACK(ssh_packet_userauth_info_request); +SSH_PACKET_CALLBACK(ssh_packet_userauth_info_response); + +/** @internal + * kdbint structure must be shared with message.c + * and server.c + */ +struct ssh_kbdint_struct { + uint32_t nprompts; + uint32_t nanswers; + char *name; + char *instruction; + char **prompts; + unsigned char *echo; /* bool array */ + char **answers; +}; +typedef struct ssh_kbdint_struct* ssh_kbdint; + +ssh_kbdint kbdint_new(void); +void kbdint_clean(ssh_kbdint kbd); +void kbdint_free(ssh_kbdint kbd); + #ifdef WITH_SSH1 void ssh_auth1_handler(ssh_session session, uint8_t type); |