diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-26 21:59:37 +0100 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-12-26 21:59:37 +0100 |
commit | a229cb46763cb4a1be1a0e3b6d93e6e0d106561d (patch) | |
tree | 15ef2b43daac6c125bc12f9badb0b03681910efc /include/libssh/session.h | |
parent | 682ed1812364bd42fef6f331486c5d8f5a72ef21 (diff) | |
download | libssh-a229cb46763cb4a1be1a0e3b6d93e6e0d106561d.tar.gz libssh-a229cb46763cb4a1be1a0e3b6d93e6e0d106561d.tar.xz libssh-a229cb46763cb4a1be1a0e3b6d93e6e0d106561d.zip |
Asynchronous authentication works !
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r-- | include/libssh/session.h | 17 |
1 files changed, 3 insertions, 14 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h index f4ed895c..64b91d90 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -24,6 +24,7 @@ #include "libssh/priv.h" #include "libssh/packet.h" #include "libssh/pcap.h" +#include "libssh/auth.h" typedef struct ssh_kbdint_struct* ssh_kbdint; @@ -41,19 +42,6 @@ enum ssh_session_state_e { SSH_SESSION_STATE_ERROR }; -/** @internal - * @brief states of the authentication service request - */ -enum ssh_auth_service_state_e { - /** initial state */ - SSH_AUTH_SERVICE_NONE=0, - /** Authentication service request packet sent */ - SSH_AUTH_SERVICE_SENT, - /** Service accepted */ - SSH_AUTH_SERVICE_ACCEPTED, - /** Access to service denied (fatal) */ - SSH_AUTH_SERVICE_DENIED -}; struct ssh_session_struct { struct error_struct error; @@ -93,8 +81,9 @@ struct ssh_session_struct { int packet_state; int dh_handshake_state; enum ssh_auth_service_state_e auth_service_state; - ssh_string dh_server_signature; //information used by dh_handshake. + enum ssh_auth_state_e auth_state; + ssh_string dh_server_signature; //information used by dh_handshake. KEX server_kex; KEX client_kex; ssh_buffer in_hashbuf; |