aboutsummaryrefslogtreecommitdiff
path: root/libssh/messages.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2009-06-17 23:53:00 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2009-06-17 23:53:00 +0200
commitcf482ae3bfb8492d996cfc9e036f5086ff69eed4 (patch)
tree6f9ef588bdcaa8834006efea72d1cbe197a1ff6e /libssh/messages.c
parent916958a2bb4be50f8562719119c143ba74fb803c (diff)
downloadlibssh-cf482ae3bfb8492d996cfc9e036f5086ff69eed4.tar.gz
libssh-cf482ae3bfb8492d996cfc9e036f5086ff69eed4.tar.xz
libssh-cf482ae3bfb8492d996cfc9e036f5086ff69eed4.zip
Begin of asynchronous SSH message parsing
Diffstat (limited to 'libssh/messages.c')
-rw-r--r--libssh/messages.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/libssh/messages.c b/libssh/messages.c
index 1894680..425829b 100644
--- a/libssh/messages.c
+++ b/libssh/messages.c
@@ -806,6 +806,18 @@ void ssh_message_free(SSH_MESSAGE *msg){
SAFE_FREE(msg);
}
+/** \internal
+ * \brief handle various SSH request messages and stack them for callback
+ * \param session SSH session
+ * \param type packet type
+ * \returns nothing
+ */
+void message_handle(SSH_SESSION *session, u32 type){
+ SSH_MESSAGE *msg=ssh_message_retrieve(session,type);
+ if(msg){
+ /* TODO store msg somewhere */
+ }
+}
/**
* @}
*/