From cf482ae3bfb8492d996cfc9e036f5086ff69eed4 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Wed, 17 Jun 2009 23:53:00 +0200 Subject: Begin of asynchronous SSH message parsing --- libssh/messages.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'libssh/messages.c') 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 */ + } +} /** * @} */ -- cgit