diff options
author | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-17 23:53:00 +0200 |
---|---|---|
committer | Aris Adamantiadis <aris@0xbadc0de.be> | 2009-06-17 23:53:00 +0200 |
commit | cf482ae3bfb8492d996cfc9e036f5086ff69eed4 (patch) | |
tree | 6f9ef588bdcaa8834006efea72d1cbe197a1ff6e /libssh/messages.c | |
parent | 916958a2bb4be50f8562719119c143ba74fb803c (diff) | |
download | libssh-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.c | 12 |
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 */ + } +} /** * @} */ |