From 46803abdbe7a1dc1e4de5084c334ce4d7e05a790 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 10 Jan 2002 16:42:17 +0000 Subject: [PATCH] Support SSH2_MSG_GLOBAL_REQUEST (just return failure) [originally from svn r1542] --- ssh.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ssh.c b/ssh.c index 8fac5680..22b8f5e7 100644 --- a/ssh.c +++ b/ssh.c @@ -5138,6 +5138,23 @@ static void do_ssh2_authconn(unsigned char *in, int inlen, int ispkt) ssh2_pkt_send(); } } + } else if (pktin.type == SSH2_MSG_GLOBAL_REQUEST) { + char *type; + int typelen, want_reply; + + ssh2_pkt_getstring(&type, &typelen); + want_reply = ssh2_pkt_getbool(); + + /* + * We currently don't support any global requests + * at all, so we either ignore the request or + * respond with REQUEST_FAILURE, depending on + * want_reply. + */ + if (want_reply) { + ssh2_pkt_init(SSH2_MSG_REQUEST_FAILURE); + ssh2_pkt_send(); + } } else if (pktin.type == SSH2_MSG_CHANNEL_OPEN) { char *type; int typelen;