From 9140242cbe86769a438421b4e64dffaf4034326e Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 10 Jan 2011 18:01:35 +0100 Subject: Non-blocking mode for ssh_connect This looks ugly. I'll see if we need to revert or change that patch later. --- include/libssh/session.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/libssh') diff --git a/include/libssh/session.h b/include/libssh/session.h index 406ba139..55eabcdd 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; -- cgit v1.2.3