aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-05-19 14:07:40 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-05-19 14:07:40 +0200
commit517e58d3dc13b16d6896de2eccc8a28d9604a708 (patch)
treee37ce8159f58b002f156196a00dc818424b042af /include/libssh
parent0eaa650e322014b67fa5e7150e889c39b294a223 (diff)
downloadlibssh-517e58d3dc13b16d6896de2eccc8a28d9604a708.tar.gz
libssh-517e58d3dc13b16d6896de2eccc8a28d9604a708.tar.xz
libssh-517e58d3dc13b16d6896de2eccc8a28d9604a708.zip
Fixed keyboard-interactive and unit test
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/auth.h5
1 files changed, 4 insertions, 1 deletions
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
};