1
0
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:
Jacob Nevins 2005-02-15 19:10:44 +00:00
parent c9116974ac
commit e8a4e7e601

View File

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