From efb6aa4642055383910891f201301298a6bea498 Mon Sep 17 00:00:00 2001 From: Jacob Nevins Date: Sat, 8 Nov 2014 18:35:31 +0000 Subject: [PATCH] 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'). --- ssh.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ssh.c b/ssh.c index d395d7b5..959025c4 100644 --- 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); } -- 2.45.2