From 517e58d3dc13b16d6896de2eccc8a28d9604a708 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 19 May 2010 14:07:40 +0200 Subject: Fixed keyboard-interactive and unit test --- include/libssh/auth.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include/libssh') diff --git a/include/libssh/auth.h b/include/libssh/auth.h index 8142143..a0f8004 100644 --- a/include/libssh/auth.h +++ b/include/libssh/auth.h @@ -28,6 +28,7 @@ SSH_PACKET_CALLBACK(ssh_packet_userauth_banner); 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); #ifdef WITH_SSH1 void ssh_auth1_handler(ssh_session session, uint8_t type); @@ -51,7 +52,9 @@ enum ssh_auth_state_e { /** Last state was a keyboard-interactive ask for info */ SSH_AUTH_STATE_INFO, /** Last state was a public key accepted for authentication */ - SSH_AUTH_STATE_PK_OK + SSH_AUTH_STATE_PK_OK, + /** We asked for a keyboard-interactive authentication */ + SSH_AUTH_STATE_KBDINT_SENT }; -- cgit v1.2.3