1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-01-10 09:58:01 +00:00

Support SSH2_MSG_GLOBAL_REQUEST (just return failure)

[originally from svn r1542]
This commit is contained in:
Simon Tatham 2002-01-10 16:42:17 +00:00
parent cf8190f637
commit 46803abdbe

17
ssh.c
View File

@ -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;