]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Martin Radford points out that the default action for the host key
authorJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 15 Feb 2005 19:10:44 +0000 (19:10 +0000)
committerJacob Nevins <jacobn@chiark.greenend.org.uk>
Tue, 15 Feb 2005 19:10:44 +0000 (19:10 +0000)
confirmation dialogs should be "cancel", not "accept".

[originally from svn r5304]

windows/windlg.c

index 3bad7c3282f6d629980ca5d925373eb23c30d175..8dd9d2907cc8ae0327dcd0ad85230e8293fcbf06 100644 (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)