summaryrefslogtreecommitdiffstats
path: root/libssh/packet.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-18 23:48:55 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-06-18 23:48:55 +0200
commit1bea53375b2fb764d9a900a0946d71d7baafb00f (patch)
tree2b10cc34633155a0287895ac4120c09d146acbf1 /libssh/packet.c
parent3af55a4f49f32ba73af86c6c47f0ed05044eec13 (diff)
downloadlibssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.tar.gz
libssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.tar.xz
libssh-1bea53375b2fb764d9a900a0946d71d7baafb00f.zip
added ssh_message_callback support.
Not fully working yet. User can set his ssh_message_callback, and the function ssh_execute_message_callbacks will call them when appropriate. Messages are correctly stacked (in packet_parse) but no call to ssh_execute_callbacks exists yet.
Diffstat (limited to 'libssh/packet.c')
-rw-r--r--libssh/packet.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libssh/packet.c b/libssh/packet.c
index 870efd4..2304441 100644
--- a/libssh/packet.c
+++ b/libssh/packet.c
@@ -753,6 +753,9 @@ static int packet_wait2(SSH_SESSION *session, int type, int blocking) {
case SSH2_MSG_CHANNEL_REQUEST:
case SSH2_MSG_CHANNEL_EOF:
case SSH2_MSG_CHANNEL_CLOSE:
+ case SSH2_MSG_SERVICE_REQUEST:
+ case SSH2_MSG_USERAUTH_REQUEST:
+ case SSH2_MSG_CHANNEL_OPEN:
packet_parse(session);
break;
case SSH2_MSG_IGNORE: