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:
6
ssh.c
6
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;
|
||||
|
Reference in New Issue
Block a user