summaryrefslogtreecommitdiffstats
path: root/include/libssh/session.h
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 18:01:35 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2011-01-10 18:01:35 +0100
commit9140242cbe86769a438421b4e64dffaf4034326e (patch)
treed80588a821c0f939371cef88dc09c2131f828b67 /include/libssh/session.h
parentbcea8921ba279712efc79dc46bbe427bc70d8def (diff)
downloadlibssh-9140242cbe86769a438421b4e64dffaf4034326e.tar.gz
libssh-9140242cbe86769a438421b4e64dffaf4034326e.tar.xz
libssh-9140242cbe86769a438421b4e64dffaf4034326e.zip
Non-blocking mode for ssh_connect
This looks ugly. I'll see if we need to revert or change that patch later.
Diffstat (limited to 'include/libssh/session.h')
-rw-r--r--include/libssh/session.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 406ba13..55eabcd 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -51,6 +51,10 @@ enum ssh_dh_state_e {
DH_STATE_FINISHED
};
+enum ssh_pending_call_e {
+ SSH_PENDING_CALL_NONE = 0,
+ SSH_PENDING_CALL_CONNECT
+};
/* libssh calls may block an undefined amount of time */
#define SSH_SESSION_FLAG_BLOCKING 1
@@ -89,6 +93,7 @@ struct ssh_session_struct {
/* the states are used by the nonblocking stuff to remember */
/* where it was before being interrupted */
+ enum ssh_pending_call_e pending_call_state;
enum ssh_session_state_e session_state;
int packet_state;
enum ssh_dh_state_e dh_handshake_state;