From b0f8ca556bc2bb18b9177d13b802a5ce11204bd8 Mon Sep 17 00:00:00 2001 From: milo Date: Sun, 8 Aug 2010 22:44:12 +0200 Subject: session: Fixed the type of the session dh_handshake_state. Signed-off-by: Andreas Schneider --- include/libssh/session.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/libssh/session.h b/include/libssh/session.h index 4de71b13..870a5a8d 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -45,7 +45,7 @@ enum ssh_session_state_e { }; enum ssh_dh_state_e { - DH_STATE_INIT, + DH_STATE_INIT=0, DH_STATE_INIT_SENT, DH_STATE_NEWKEYS_SENT, DH_STATE_FINISHED @@ -87,7 +87,7 @@ struct ssh_session_struct { /* where it was before being interrupted */ enum ssh_session_state_e session_state; int packet_state; - int dh_handshake_state; + enum ssh_dh_state_e dh_handshake_state; enum ssh_auth_service_state_e auth_service_state; enum ssh_auth_state_e auth_state; enum ssh_channel_request_state_e global_req_state; -- cgit