aboutsummaryrefslogtreecommitdiff
path: root/include/libssh
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-01-06 21:48:44 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2010-01-06 21:48:44 +0100
commitef5dc6cd2bf5f27230c33dbdcdff3a5fc67ab688 (patch)
treee49235003392fb3e7ccbf04f9bbceb2a579e2c2b /include/libssh
parent84e6aca5c523768653b751d2d770f0fedcbbe0a9 (diff)
downloadlibssh-ef5dc6cd2bf5f27230c33dbdcdff3a5fc67ab688.tar.gz
libssh-ef5dc6cd2bf5f27230c33dbdcdff3a5fc67ab688.tar.xz
libssh-ef5dc6cd2bf5f27230c33dbdcdff3a5fc67ab688.zip
Add support for async global requests
Normally the infamous packet_wait() synchronous call is gone in all SSH2 client code.
Diffstat (limited to 'include/libssh')
-rw-r--r--include/libssh/channels.h2
-rw-r--r--include/libssh/session.h3
2 files changed, 4 insertions, 1 deletions
diff --git a/include/libssh/channels.h b/include/libssh/channels.h
index 5b9fc78..ae45f26 100644
--- a/include/libssh/channels.h
+++ b/include/libssh/channels.h
@@ -68,6 +68,8 @@ SSH_PACKET_CALLBACK(ssh_packet_channel_open_conf);
SSH_PACKET_CALLBACK(ssh_packet_channel_open_fail);
SSH_PACKET_CALLBACK(ssh_packet_channel_success);
SSH_PACKET_CALLBACK(ssh_packet_channel_failure);
+SSH_PACKET_CALLBACK(ssh_request_success);
+SSH_PACKET_CALLBACK(ssh_request_denied);
ssh_channel channel_new(ssh_session session);
int channel_default_bufferize(ssh_channel channel, void *data, int len,
diff --git a/include/libssh/session.h b/include/libssh/session.h
index 64b91d9..dd13e70 100644
--- a/include/libssh/session.h
+++ b/include/libssh/session.h
@@ -25,6 +25,7 @@
#include "libssh/packet.h"
#include "libssh/pcap.h"
#include "libssh/auth.h"
+#include "libssh/channels.h"
typedef struct ssh_kbdint_struct* ssh_kbdint;
@@ -82,7 +83,7 @@ struct ssh_session_struct {
int dh_handshake_state;
enum ssh_auth_service_state_e auth_service_state;
enum ssh_auth_state_e auth_state;
-
+ enum ssh_channel_request_state_e global_req_state;
ssh_string dh_server_signature; //information used by dh_handshake.
KEX server_kex;
KEX client_kex;