1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-03 04:22:47 -05:00

SSH2 only support

[originally from svn r1664]
This commit is contained in:
Owen Dunn
2002-05-11 13:08:37 +00:00
parent c14c2ff479
commit c71432cb86
2 changed files with 20 additions and 5 deletions

6
ssh.c
View File

@ -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;