mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Add remaining comments to the last checkin (gah, remember to hit
Save in the editor _before_ running cvs commit). [originally from svn r1333]
This commit is contained in:
parent
6c9cdbe29f
commit
8493e83d74
9
ssh.c
9
ssh.c
@ -2422,6 +2422,10 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
|
|||||||
* against password length sniffing.
|
* against password length sniffing.
|
||||||
*/
|
*/
|
||||||
if (!(ssh_remote_bugs & BUG_CHOKES_ON_SSH1_IGNORE)) {
|
if (!(ssh_remote_bugs & BUG_CHOKES_ON_SSH1_IGNORE)) {
|
||||||
|
/*
|
||||||
|
* The server can deal with SSH1_MSG_IGNORE, so
|
||||||
|
* we can use the primary defence.
|
||||||
|
*/
|
||||||
int bottom, top, pwlen, i;
|
int bottom, top, pwlen, i;
|
||||||
char *randomstr;
|
char *randomstr;
|
||||||
|
|
||||||
@ -2457,6 +2461,11 @@ static int do_ssh1_login(unsigned char *in, int inlen, int ispkt)
|
|||||||
ssh_pkt_defersend();
|
ssh_pkt_defersend();
|
||||||
}
|
}
|
||||||
else if (!(ssh_remote_bugs & BUG_NEEDS_SSH1_PLAIN_PASSWORD)) {
|
else if (!(ssh_remote_bugs & BUG_NEEDS_SSH1_PLAIN_PASSWORD)) {
|
||||||
|
/*
|
||||||
|
* The server can't deal with SSH1_MSG_IGNORE
|
||||||
|
* but can deal with padded passwords, so we
|
||||||
|
* can use the secondary defence.
|
||||||
|
*/
|
||||||
char string[64];
|
char string[64];
|
||||||
char *s;
|
char *s;
|
||||||
int len;
|
int len;
|
||||||
|
Loading…
Reference in New Issue
Block a user