diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-11-30 21:23:12 +0000 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2005-11-30 21:23:12 +0000 |
commit | 3edfd105b37c71f10816f32022e6baf54625d9c0 (patch) | |
tree | 7d0cad7e6271b2ce268b036d9508705f9870d3a2 /include/libssh/priv.h | |
parent | ac4fd091775805b6849774f3c4b7e59dc1ab6bde (diff) | |
download | libssh-3edfd105b37c71f10816f32022e6baf54625d9c0.tar.gz libssh-3edfd105b37c71f10816f32022e6baf54625d9c0.tar.xz libssh-3edfd105b37c71f10816f32022e6baf54625d9c0.zip |
nonblocking support in dh_handshake() from client.c
some packet nonblocking fixes.
reenable sftp from the sample client.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@52 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index c6cc6636..1dd6e92f 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -326,6 +326,8 @@ struct ssh_session { /* the states are used by the nonblocking stuff to remember */ /* where it was before being interrupted */ int packet_state; + int dh_handshake_state; + STRING *dh_server_signature; //information used by dh_handshake. KEX server_kex; KEX client_kex; @@ -413,7 +415,7 @@ int packet_send(SSH_SESSION *session); int packet_read(SSH_SESSION *session); int packet_translate(SSH_SESSION *session); int packet_wait(SSH_SESSION *session,int type,int blocking); - +int packet_flush(SSH_SESSION *session, int enforce_blocking); /* connect.c */ SSH_SESSION *ssh_session_new(); int ssh_connect_host(SSH_SESSION *session, const char *host,const char |