-#include <windows.h>
-#include <commctrl.h>
-#include <commdlg.h>
#include <stdio.h>
#include <stdlib.h>
#include <limits.h>
#include <ctype.h>
#include <time.h>
-#include "ssh.h"
#include "putty.h"
-#include "winstuff.h"
+#include "ssh.h"
#include "win_res.h"
#include "storage.h"
#include "dialog.h"
+#include <commctrl.h>
+#include <commdlg.h>
+#include <shellapi.h>
+
#ifdef MSVC4
#define TVINSERTSTRUCT TV_INSERTSTRUCT
#define TVITEM TV_ITEM
ctrl_free_box(ctrlbox);
winctrl_cleanup(&ctrls_base);
winctrl_cleanup(&ctrls_panel);
- sfree(dp.errtitle);
dp_cleanup(&dp);
if (!ret)
"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"
"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"
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);
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);