mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
67d3791de8
With this change, we stop expecting to find putty.chm alongside the executable file. That was a security hazard comparable to DLL hijacking, because of the risk that a malicious CHM file could be dropped into the same directory as putty.exe (e.g. if someone ran PuTTY from their browser's download dir).. Instead, the standalone putty.exe (and other binaries needing help) embed the proper CHM file within themselves, as a Windows resource, and if called on to display the help then they write the file out to a temporary location. This has the advantage that if you download and run the standalone putty.exe then you actually _get_ help, which previously didn't happen! The versions of the binaries in the installer don't each contain a copy of the help file; that would be extravagant. Instead, the installer itself writes a registry entry pointing at the proper help file, and the executables will look there. Another effect of this commit is that I've withdrawn support for the older .HLP format completely. It's now entirely outdated, and supporting it through this security fix would have been a huge pain.
68 lines
1.9 KiB
Plaintext
68 lines
1.9 KiB
Plaintext
/*
|
|
* Windows resources for Pageant.
|
|
*/
|
|
|
|
#include "rcstuff.h"
|
|
|
|
#define APPNAME "Pageant"
|
|
#define APPDESC "PuTTY SSH authentication agent"
|
|
|
|
#include "winhelp.rc2"
|
|
|
|
200 ICON "pageant.ico"
|
|
201 ICON "pageants.ico"
|
|
|
|
210 DIALOG DISCARDABLE 0, 0, 140, 60
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Pageant: Enter Passphrase"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
CTEXT "Enter passphrase for key", 100, 10, 6, 120, 8
|
|
CTEXT "", 101, 10, 16, 120, 8
|
|
EDITTEXT 102, 10, 26, 120, 12, ES_PASSWORD | ES_AUTOHSCROLL
|
|
DEFPUSHBUTTON "O&K", IDOK, 20, 42, 40, 14
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 80, 42, 40, 14
|
|
END
|
|
|
|
211 DIALOG DISCARDABLE 0, 0, 330, 200
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Pageant Key List"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
LISTBOX 100, 10, 10, 310, 155,
|
|
LBS_EXTENDEDSEL | LBS_HASSTRINGS | LBS_USETABSTOPS | WS_VSCROLL | WS_TABSTOP
|
|
PUSHBUTTON "&Add Key", 101, 75, 162, 60, 14
|
|
PUSHBUTTON "&Remove Key", 102, 195, 162, 60, 14
|
|
PUSHBUTTON "&Help", 103, 10, 182, 50, 14
|
|
DEFPUSHBUTTON "&Close", IDOK, 270, 182, 50, 14
|
|
END
|
|
|
|
/* Accelerators used: cl */
|
|
213 DIALOG DISCARDABLE 140, 40, 270, 106
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "About Pageant"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
DEFPUSHBUTTON "&Close", IDOK, 216, 88, 48, 14
|
|
PUSHBUTTON "View &Licence", 101, 6, 88, 70, 14
|
|
PUSHBUTTON "Visit &Web Site", 102, 140, 88, 70, 14
|
|
EDITTEXT 1000, 10, 6, 250, 80, ES_READONLY | ES_MULTILINE | ES_CENTER, WS_EX_STATICEDGE
|
|
END
|
|
|
|
/* No accelerators used */
|
|
214 DIALOG DISCARDABLE 50, 50, 326, 231
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "PuTTY Licence"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
DEFPUSHBUTTON "OK", IDOK, 148, 211, 44, 14
|
|
|
|
EDITTEXT 1000, 10, 10, 306, 192, ES_READONLY | ES_MULTILINE | ES_LEFT, WS_EX_STATICEDGE
|
|
END
|
|
|
|
#include "version.rc2"
|
|
|
|
#ifndef NO_MANIFESTS
|
|
1 RT_MANIFEST "pageant.mft"
|
|
#endif /* NO_MANIFESTS */
|