Subject: Re: [PATCH] Follow RFC4253 section 11.4

Re: [PATCH] Follow RFC4253 section 11.4

From: Henrik Nordström <henrik_at_henriknordstrom.net>
Date: Tue, 28 Feb 2012 11:21:46 +0100

mån 2012-02-27 klockan 20:58 -0700 skrev Steven Dake:
> 11.4. Reserved Messages
>
> An implementation MUST respond to all unrecognized messages with an
> SSH_MSG_UNIMPLEMENTED message in the order in which the messages were
> received. Such messages MUST be otherwise ignored. Later protocol
> versions may define other meanings for these message types.
>
> byte SSH_MSG_UNIMPLEMENTED
> uint32 packet sequence number of rejected message
>
>
> + case SSH_MSG_UNIMPLEMENTED:
> + LIBSSH2_FREE(session, data);
> + session->packAdd_state = libssh2_NB_state_idle;
> + return 0;
> +

Err.. it's an error and needs to be dealt with. If not then the
application will not know that the request failed.

Regards
Henrik

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-02-28