зеркало из https://github.com/github/putty.git
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:
Родитель
14d219e026
Коммит
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче