X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/8ee3ff16bb05090f9812a924d7d2a085bd22d3b2..7440fd4419acfc9c784f142fb9dee3e64c9a18c2:/windlg.c diff --git a/windlg.c b/windlg.c index 277b2c00..3bdcefff 100644 --- a/windlg.c +++ b/windlg.c @@ -1,6 +1,3 @@ -#include -#include -#include #include #include #include @@ -8,13 +5,15 @@ #include #include -#include "ssh.h" #include "putty.h" -#include "winstuff.h" +#include "ssh.h" #include "win_res.h" #include "storage.h" #include "dialog.h" +#include +#include + #ifdef MSVC4 #define TVINSERTSTRUCT TV_INSERTSTRUCT #define TVITEM TV_ITEM @@ -711,7 +710,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype, "The server's host key is not cached in the registry. You\n" "have no guarantee that the server is the computer you\n" "think it is.\n" - "The server's key fingerprint is:\n" + "The server's %s key fingerprint is:\n" "%s\n" "If you trust this host, hit Yes to add the key to\n" "%s's cache and carry on connecting.\n" @@ -728,7 +727,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype, "server administrator has changed the host key, or you\n" "have actually connected to another computer pretending\n" "to be the server.\n" - "The new key fingerprint is:\n" + "The new %s key fingerprint is:\n" "%s\n" "If you were expecting this change and trust the new key,\n" "hit Yes to update %s's cache and continue connecting.\n" @@ -749,7 +748,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype, if (ret == 2) { /* key was different */ int mbret; char *message, *title; - message = dupprintf(wrongmsg, appname, fingerprint, appname); + message = dupprintf(wrongmsg, appname, keytype, fingerprint, appname); title = dupprintf(mbtitle, appname); mbret = MessageBox(NULL, message, title, MB_ICONWARNING | MB_YESNOCANCEL); @@ -763,7 +762,7 @@ void verify_ssh_host_key(void *frontend, char *host, int port, char *keytype, if (ret == 1) { /* key was absent */ int mbret; char *message, *title; - message = dupprintf(absentmsg, fingerprint, appname); + message = dupprintf(absentmsg, keytype, fingerprint, appname); title = dupprintf(mbtitle, appname); mbret = MessageBox(NULL, message, title, MB_ICONWARNING | MB_YESNOCANCEL);