mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-03-12 18:13:50 -05:00
Add notification when using the various auth methods with server-supplied
prompts, to make it more obvious if a server is attempting to spoof a local passphrase prompt. I believe an alert user could have spotted this in all cases in SSH-2, although perhaps not in SSH-1. (But they'd have to have enabled TIS/CryptoCard.) [originally from svn r5450]
This commit is contained in:
parent
d860adb55d
commit
b222632c66
3
ssh.c
3
ssh.c
@ -3337,6 +3337,7 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen,
|
||||
bombout(("TIS challenge packet was badly formed"));
|
||||
crStop(0);
|
||||
}
|
||||
c_write_str(ssh, "Using TIS authentication.\r\n");
|
||||
logevent("Received TIS challenge");
|
||||
if (challengelen > sizeof(s->prompt) - 1)
|
||||
challengelen = sizeof(s->prompt) - 1;/* prevent overrun */
|
||||
@ -3370,6 +3371,7 @@ static int do_ssh1_login(Ssh ssh, unsigned char *in, int inlen,
|
||||
bombout(("CryptoCard challenge packet was badly formed"));
|
||||
crStop(0);
|
||||
}
|
||||
c_write_str(ssh, "Using CryptoCard authentication.\r\n");
|
||||
logevent("Received CryptoCard challenge");
|
||||
if (challengelen > sizeof(s->prompt) - 1)
|
||||
challengelen = sizeof(s->prompt) - 1;/* prevent overrun */
|
||||
@ -6802,6 +6804,7 @@ static void do_ssh2_authconn(Ssh ssh, unsigned char *in, int inlen,
|
||||
continue;
|
||||
}
|
||||
|
||||
c_write_str(ssh, "Using keyboard-interactive authentication.\r\n");
|
||||
s->kbd_inter_running = TRUE;
|
||||
s->curr_prompt = 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user