mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-26 09:42:25 +00:00
Tweak SSH protocol version refusal messages.
"required by user" will grate if the user did not configure the behaviour (and I'm about to change the default to `2 only').
This commit is contained in:
parent
14d219e026
commit
efb6aa4642
6
ssh.c
6
ssh.c
@ -2960,11 +2960,13 @@ static int do_ssh_init(Ssh ssh, unsigned char c)
|
|||||||
s->proto2 = ssh_versioncmp(s->version, "1.99") >= 0;
|
s->proto2 = ssh_versioncmp(s->version, "1.99") >= 0;
|
||||||
|
|
||||||
if (conf_get_int(ssh->conf, CONF_sshprot) == 0 && !s->proto1) {
|
if (conf_get_int(ssh->conf, CONF_sshprot) == 0 && !s->proto1) {
|
||||||
bombout(("SSH protocol version 1 required by user but not provided by server"));
|
bombout(("SSH protocol version 1 required by configuration but "
|
||||||
|
"not provided by server"));
|
||||||
crStop(0);
|
crStop(0);
|
||||||
}
|
}
|
||||||
if (conf_get_int(ssh->conf, CONF_sshprot) == 3 && !s->proto2) {
|
if (conf_get_int(ssh->conf, CONF_sshprot) == 3 && !s->proto2) {
|
||||||
bombout(("SSH protocol version 2 required by user but not provided by server"));
|
bombout(("SSH protocol version 2 required by configuration but "
|
||||||
|
"not provided by server"));
|
||||||
crStop(0);
|
crStop(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user