diff options
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 343b309..c2fba2a 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); |