From 84ec17964ed52c23f80f94e0fe23f29948d7d0a6 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 6 Jan 2010 22:49:40 +0100 Subject: Made the server DH asynchronous. It still needs testing and cleanup, it was done with less care than the client-side. The socket listening and connexion is still synchronous --- include/libssh/session.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'include/libssh/session.h') diff --git a/include/libssh/session.h b/include/libssh/session.h index dd13e70..900de0f 100644 --- a/include/libssh/session.h +++ b/include/libssh/session.h @@ -43,6 +43,12 @@ enum ssh_session_state_e { SSH_SESSION_STATE_ERROR }; +enum ssh_dh_state_e { + DH_STATE_INIT, + DH_STATE_INIT_SENT, + DH_STATE_NEWKEYS_SENT, + DH_STATE_FINISHED +}; struct ssh_session_struct { struct error_struct error; -- cgit