]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Tweak SSH protocol version refusal messages.
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 8 Nov 2014 18:35:31 +0000 (18:35 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Sat, 8 Nov 2014 18:38:33 +0000 (18:38 +0000)
"required by user" will grate if the user did not configure the
behaviour (and I'm about to change the default to `2 only').

ssh.c

diff --git a/ssh.c b/ssh.c
index d395d7b5c556e72347a814cd2c8509eed27c1aa1..959025c4cffbeabb85decac0c6bbc30bc81b6a13 100644 (file)
--- a/ssh.c
+++ b/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;
 
     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);
     }
     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);
     }