summaryrefslogtreecommitdiffstats
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-06 22:49:40 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-06 22:49:40 +0100
commit84ec17964ed52c23f80f94e0fe23f29948d7d0a6 (patch)
tree57cae3c316d54efe5a893f066478dee1bf83ceaa /include/libssh/session.h
parentef5dc6cd2bf5f27230c33dbdcdff3a5fc67ab688 (diff)
downloadlibssh-84ec17964ed52c23f80f94e0fe23f29948d7d0a6.tar.gz
libssh-84ec17964ed52c23f80f94e0fe23f29948d7d0a6.tar.xz
libssh-84ec17964ed52c23f80f94e0fe23f29948d7d0a6.zip
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
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h6
1 files changed, 6 insertions, 0 deletions
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;