X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=ssh.c;h=c9b1bcdb938a9c4f9c9d015bd4997904fd13cfeb;hb=030c75b7db19c25dd59aa8dc40bc906b737761ec;hp=d9981ed17b9b6fa89f6df5fb3708a5f5e1c5bcba;hpb=8c3a0eb50b31bd9f3c730b0aedfdd636077e8ac5;p=PuTTY.git diff --git a/ssh.c b/ssh.c index d9981ed1..c9b1bcdb 100644 --- a/ssh.c +++ b/ssh.c @@ -1722,6 +1722,12 @@ static int do_ssh_init(unsigned char c) sprintf(vlog, "We claim version: %s", verstring); logevent(vlog); strcat(verstring, "\n"); + + if (cfg.sshprot == 3) { + bombout(("SSH protocol version 2 required by user but not provided by server")); + crReturn(0); + } + logevent("Using SSH protocol version 1"); sk_write(s, verstring, strlen(verstring)); ssh_protocol = ssh1_protocol;