From 3edfd105b37c71f10816f32022e6baf54625d9c0 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 30 Nov 2005 21:23:12 +0000 Subject: 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 --- include/libssh/priv.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'include') 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 -- cgit v1.2.3