mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-25 01:02:24 +00:00
Martin Radford points out that the default action for the host key
confirmation dialogs should be "cancel", not "accept". [originally from svn r5304]
This commit is contained in:
parent
c9116974ac
commit
e8a4e7e601
@ -751,7 +751,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
|
||||
message = dupprintf(wrongmsg, appname, keytype, fingerprint, appname);
|
||||
title = dupprintf(mbtitle, appname);
|
||||
mbret = MessageBox(NULL, message, title,
|
||||
MB_ICONWARNING | MB_YESNOCANCEL);
|
||||
MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON3);
|
||||
sfree(message);
|
||||
sfree(title);
|
||||
if (mbret == IDYES)
|
||||
@ -765,7 +765,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype,
|
||||
message = dupprintf(absentmsg, keytype, fingerprint, appname);
|
||||
title = dupprintf(mbtitle, appname);
|
||||
mbret = MessageBox(NULL, message, title,
|
||||
MB_ICONWARNING | MB_YESNOCANCEL);
|
||||
MB_ICONWARNING | MB_YESNOCANCEL | MB_DEFBUTTON3);
|
||||
sfree(message);
|
||||
sfree(title);
|
||||
if (mbret == IDYES)
|
||||
|
Loading…
Reference in New Issue
Block a user