2005-02-26 17:43:47 +00:00
|
|
|
/*
|
2005-10-04 14:13:28 +00:00
|
|
|
* Windows resources shared between PuTTY and PuTTYtel, to be #include'd
|
|
|
|
* after defining appropriate macros.
|
2018-10-06 10:46:47 +00:00
|
|
|
*
|
2005-10-04 14:13:28 +00:00
|
|
|
* Note that many of these strings mention PuTTY. Due to restrictions in
|
|
|
|
* VC's handling of string concatenation, this can't easily be fixed.
|
|
|
|
* It's fixed up at runtime.
|
2018-10-06 10:46:47 +00:00
|
|
|
*
|
|
|
|
* This file has the more or less arbitrary extension '.rc2' to avoid
|
|
|
|
* IDEs taking it to be a top-level resource script in its own right
|
|
|
|
* (which has been known to happen if the extension was '.rc'), and
|
|
|
|
* also to avoid the resource compiler ignoring everything included
|
|
|
|
* from it (which happens if the extension is '.h').
|
2005-02-26 17:43:47 +00:00
|
|
|
*/
|
2000-09-19 08:24:51 +00:00
|
|
|
|
2001-04-09 12:23:45 +00:00
|
|
|
/* Accelerators used: clw */
|
2017-07-04 18:35:18 +00:00
|
|
|
IDD_ABOUTBOX DIALOG DISCARDABLE 140, 40, 270, 136
|
1999-01-08 13:02:13 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "About PuTTY"
|
2002-12-15 12:44:21 +00:00
|
|
|
FONT 8, "MS Shell Dlg"
|
1999-01-08 13:02:13 +00:00
|
|
|
BEGIN
|
2017-07-04 18:35:18 +00:00
|
|
|
DEFPUSHBUTTON "&Close", IDOK, 216, 118, 48, 14
|
|
|
|
PUSHBUTTON "View &Licence", IDA_LICENCE, 6, 118, 70, 14
|
|
|
|
PUSHBUTTON "Visit &Web Site", IDA_WEB, 140, 118, 70, 14
|
|
|
|
EDITTEXT IDA_TEXT, 10, 6, 250, 110, ES_READONLY | ES_MULTILINE | ES_CENTER, WS_EX_STATICEDGE
|
1999-01-08 13:02:13 +00:00
|
|
|
END
|
|
|
|
|
2000-09-15 11:26:18 +00:00
|
|
|
/* Accelerators used: aco */
|
2004-12-30 16:45:11 +00:00
|
|
|
IDD_MAINBOX DIALOG DISCARDABLE 0, 0, 300, 252
|
1999-01-08 13:02:13 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "PuTTY Configuration"
|
2002-12-15 12:44:21 +00:00
|
|
|
FONT 8, "MS Shell Dlg"
|
2003-06-18 17:25:18 +00:00
|
|
|
CLASS "PuTTYConfigBox"
|
1999-01-08 13:02:13 +00:00
|
|
|
BEGIN
|
1999-11-08 11:08:09 +00:00
|
|
|
END
|
|
|
|
|
2000-10-06 12:31:54 +00:00
|
|
|
/* Accelerators used: co */
|
2001-02-27 17:02:51 +00:00
|
|
|
IDD_LOGBOX DIALOG DISCARDABLE 100, 20, 300, 119
|
1999-01-08 13:02:13 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
1999-11-09 11:10:04 +00:00
|
|
|
CAPTION "PuTTY Event Log"
|
2002-12-15 12:44:21 +00:00
|
|
|
FONT 8, "MS Shell Dlg"
|
1999-01-08 13:02:13 +00:00
|
|
|
BEGIN
|
2000-10-06 12:31:54 +00:00
|
|
|
DEFPUSHBUTTON "&Close", IDOK, 135, 102, 44, 14
|
|
|
|
PUSHBUTTON "C&opy", IDN_COPY, 81, 102, 44, 14
|
2001-02-27 17:02:51 +00:00
|
|
|
LISTBOX IDN_LIST, 3, 3, 294, 95, LBS_HASSTRINGS | LBS_USETABSTOPS | WS_VSCROLL | LBS_EXTENDEDSEL
|
1999-01-08 13:02:13 +00:00
|
|
|
END
|
|
|
|
|
2000-09-15 11:26:18 +00:00
|
|
|
/* No accelerators used */
|
2019-03-18 20:32:55 +00:00
|
|
|
IDD_LICENCEBOX DIALOG DISCARDABLE 50, 50, 326, 239
|
1999-01-08 13:02:13 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "PuTTY Licence"
|
2002-12-15 12:44:21 +00:00
|
|
|
FONT 8, "MS Shell Dlg"
|
1999-01-08 13:02:13 +00:00
|
|
|
BEGIN
|
2019-03-18 20:32:55 +00:00
|
|
|
DEFPUSHBUTTON "OK", IDOK, 148, 219, 44, 14
|
1999-01-08 13:02:13 +00:00
|
|
|
|
2019-03-18 20:32:55 +00:00
|
|
|
EDITTEXT IDA_TEXT, 10, 10, 306, 200, ES_READONLY | ES_MULTILINE | ES_LEFT, WS_EX_STATICEDGE
|
1999-01-08 13:02:13 +00:00
|
|
|
END
|
2002-01-08 09:32:50 +00:00
|
|
|
|
2022-10-21 19:37:05 +00:00
|
|
|
/* Accelerators used: achio */
|
Centralise most details of host-key prompting.
The text of the host key warnings was replicated in three places: the
Windows rc file, the GTK dialog setup function, and the console.c
shared between both platforms' CLI tools. Now it lives in just one
place, namely ssh/common.c where the rest of the centralised host-key
checking is done, so it'll be easier to adjust the wording in future.
This comes with some extra automation. Paragraph wrapping is no longer
done by hand in any version of these prompts. (Previously we let GTK
do the wrapping on GTK, but on Windows the resource file contained a
bunch of pre-wrapped LTEXT lines, and console.c had pre-wrapped
terminal messages.) And the dialog heights in Windows are determined
automatically based on the amount of stuff in the window.
The main idea of all this is that it'll be easier to set up more
elaborate kinds of host key prompt that deal with certificates (if,
e.g., a server sends us a certified host key which we don't trust the
CA for). But there are side benefits of this refactoring too: each
tool now reliably inserts its own appname in the prompts, and also, on
Windows the entire prompt text is copy-pastable.
Details of implementation: there's a new type SeatDialogText which
holds a set of (type, string) pairs describing the contents of a
prompt. Type codes distinguish ordinary text paragraphs, paragraphs to
be displayed prominently (like key fingerprints), the extra-bold scary
title at the top of the 'host key changed' version of the dialog, and
the various information that lives in the subsidiary 'more info' box.
ssh/common.c constructs this, and passes it to the Seat to present the
actual prompt.
In order to deal with the different UI for answering the prompt, I've
added an extra Seat method 'prompt_descriptions' which returns some
snippets of text to interpolate into the messages. ssh/common.c calls
that while it's still constructing the text, and incorporates the
resulting snippets into the SeatDialogText.
For the moment, this refactoring only affects the host key prompts.
The warnings about outmoded crypto are still done the old-fashioned
way; they probably ought to be similarly refactored to use this new
SeatDialogText system, but it's not immediately critical for the
purpose I have right now.
2022-07-07 16:25:15 +00:00
|
|
|
IDD_HOSTKEY DIALOG DISCARDABLE 50, 50, 340, 240
|
2021-02-28 13:40:22 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "PuTTY Security Alert"
|
|
|
|
FONT 8, "MS Shell Dlg"
|
2022-07-07 16:23:27 +00:00
|
|
|
CLASS "PuTTYHostKeyDialog"
|
2021-02-28 13:40:22 +00:00
|
|
|
BEGIN
|
|
|
|
ICON "", IDC_HK_ICON, 10, 18, 0, 0
|
|
|
|
|
2022-10-21 19:37:05 +00:00
|
|
|
PUSHBUTTON "&Cancel", IDCANCEL, 288, 220, 40, 14
|
Centralise most details of host-key prompting.
The text of the host key warnings was replicated in three places: the
Windows rc file, the GTK dialog setup function, and the console.c
shared between both platforms' CLI tools. Now it lives in just one
place, namely ssh/common.c where the rest of the centralised host-key
checking is done, so it'll be easier to adjust the wording in future.
This comes with some extra automation. Paragraph wrapping is no longer
done by hand in any version of these prompts. (Previously we let GTK
do the wrapping on GTK, but on Windows the resource file contained a
bunch of pre-wrapped LTEXT lines, and console.c had pre-wrapped
terminal messages.) And the dialog heights in Windows are determined
automatically based on the amount of stuff in the window.
The main idea of all this is that it'll be easier to set up more
elaborate kinds of host key prompt that deal with certificates (if,
e.g., a server sends us a certified host key which we don't trust the
CA for). But there are side benefits of this refactoring too: each
tool now reliably inserts its own appname in the prompts, and also, on
Windows the entire prompt text is copy-pastable.
Details of implementation: there's a new type SeatDialogText which
holds a set of (type, string) pairs describing the contents of a
prompt. Type codes distinguish ordinary text paragraphs, paragraphs to
be displayed prominently (like key fingerprints), the extra-bold scary
title at the top of the 'host key changed' version of the dialog, and
the various information that lives in the subsidiary 'more info' box.
ssh/common.c constructs this, and passes it to the Seat to present the
actual prompt.
In order to deal with the different UI for answering the prompt, I've
added an extra Seat method 'prompt_descriptions' which returns some
snippets of text to interpolate into the messages. ssh/common.c calls
that while it's still constructing the text, and incorporates the
resulting snippets into the SeatDialogText.
For the moment, this refactoring only affects the host key prompts.
The warnings about outmoded crypto are still done the old-fashioned
way; they probably ought to be similarly refactored to use this new
SeatDialogText system, but it's not immediately critical for the
purpose I have right now.
2022-07-07 16:25:15 +00:00
|
|
|
PUSHBUTTON "&Accept", IDC_HK_ACCEPT, 168, 220, 40, 14
|
|
|
|
PUSHBUTTON "Connect &Once", IDC_HK_ONCE, 216, 220, 64, 14
|
|
|
|
PUSHBUTTON "More &info...", IDC_HK_MOREINFO, 60, 220, 64, 14
|
|
|
|
PUSHBUTTON "&Help", IDHELP, 12, 220, 40, 14
|
2021-02-28 13:40:22 +00:00
|
|
|
|
Centralise most details of host-key prompting.
The text of the host key warnings was replicated in three places: the
Windows rc file, the GTK dialog setup function, and the console.c
shared between both platforms' CLI tools. Now it lives in just one
place, namely ssh/common.c where the rest of the centralised host-key
checking is done, so it'll be easier to adjust the wording in future.
This comes with some extra automation. Paragraph wrapping is no longer
done by hand in any version of these prompts. (Previously we let GTK
do the wrapping on GTK, but on Windows the resource file contained a
bunch of pre-wrapped LTEXT lines, and console.c had pre-wrapped
terminal messages.) And the dialog heights in Windows are determined
automatically based on the amount of stuff in the window.
The main idea of all this is that it'll be easier to set up more
elaborate kinds of host key prompt that deal with certificates (if,
e.g., a server sends us a certified host key which we don't trust the
CA for). But there are side benefits of this refactoring too: each
tool now reliably inserts its own appname in the prompts, and also, on
Windows the entire prompt text is copy-pastable.
Details of implementation: there's a new type SeatDialogText which
holds a set of (type, string) pairs describing the contents of a
prompt. Type codes distinguish ordinary text paragraphs, paragraphs to
be displayed prominently (like key fingerprints), the extra-bold scary
title at the top of the 'host key changed' version of the dialog, and
the various information that lives in the subsidiary 'more info' box.
ssh/common.c constructs this, and passes it to the Seat to present the
actual prompt.
In order to deal with the different UI for answering the prompt, I've
added an extra Seat method 'prompt_descriptions' which returns some
snippets of text to interpolate into the messages. ssh/common.c calls
that while it's still constructing the text, and incorporates the
resulting snippets into the SeatDialogText.
For the moment, this refactoring only affects the host key prompts.
The warnings about outmoded crypto are still done the old-fashioned
way; they probably ought to be similarly refactored to use this new
SeatDialogText system, but it's not immediately critical for the
purpose I have right now.
2022-07-07 16:25:15 +00:00
|
|
|
LTEXT "", IDC_HK_TITLE, 40, 20, 300, 12
|
2021-02-28 13:40:22 +00:00
|
|
|
|
Centralise most details of host-key prompting.
The text of the host key warnings was replicated in three places: the
Windows rc file, the GTK dialog setup function, and the console.c
shared between both platforms' CLI tools. Now it lives in just one
place, namely ssh/common.c where the rest of the centralised host-key
checking is done, so it'll be easier to adjust the wording in future.
This comes with some extra automation. Paragraph wrapping is no longer
done by hand in any version of these prompts. (Previously we let GTK
do the wrapping on GTK, but on Windows the resource file contained a
bunch of pre-wrapped LTEXT lines, and console.c had pre-wrapped
terminal messages.) And the dialog heights in Windows are determined
automatically based on the amount of stuff in the window.
The main idea of all this is that it'll be easier to set up more
elaborate kinds of host key prompt that deal with certificates (if,
e.g., a server sends us a certified host key which we don't trust the
CA for). But there are side benefits of this refactoring too: each
tool now reliably inserts its own appname in the prompts, and also, on
Windows the entire prompt text is copy-pastable.
Details of implementation: there's a new type SeatDialogText which
holds a set of (type, string) pairs describing the contents of a
prompt. Type codes distinguish ordinary text paragraphs, paragraphs to
be displayed prominently (like key fingerprints), the extra-bold scary
title at the top of the 'host key changed' version of the dialog, and
the various information that lives in the subsidiary 'more info' box.
ssh/common.c constructs this, and passes it to the Seat to present the
actual prompt.
In order to deal with the different UI for answering the prompt, I've
added an extra Seat method 'prompt_descriptions' which returns some
snippets of text to interpolate into the messages. ssh/common.c calls
that while it's still constructing the text, and incorporates the
resulting snippets into the SeatDialogText.
For the moment, this refactoring only affects the host key prompts.
The warnings about outmoded crypto are still done the old-fashioned
way; they probably ought to be similarly refactored to use this new
SeatDialogText system, but it's not immediately critical for the
purpose I have right now.
2022-07-07 16:25:15 +00:00
|
|
|
EDITTEXT IDC_HK_TEXT, 40, 20, 290, 200, ES_READONLY | ES_MULTILINE | ES_LEFT, WS_EX_STATICEDGE
|
2021-03-13 11:06:32 +00:00
|
|
|
END
|
|
|
|
|
2022-10-21 19:37:05 +00:00
|
|
|
/* Accelerators used: c */
|
Centralise most details of host-key prompting.
The text of the host key warnings was replicated in three places: the
Windows rc file, the GTK dialog setup function, and the console.c
shared between both platforms' CLI tools. Now it lives in just one
place, namely ssh/common.c where the rest of the centralised host-key
checking is done, so it'll be easier to adjust the wording in future.
This comes with some extra automation. Paragraph wrapping is no longer
done by hand in any version of these prompts. (Previously we let GTK
do the wrapping on GTK, but on Windows the resource file contained a
bunch of pre-wrapped LTEXT lines, and console.c had pre-wrapped
terminal messages.) And the dialog heights in Windows are determined
automatically based on the amount of stuff in the window.
The main idea of all this is that it'll be easier to set up more
elaborate kinds of host key prompt that deal with certificates (if,
e.g., a server sends us a certified host key which we don't trust the
CA for). But there are side benefits of this refactoring too: each
tool now reliably inserts its own appname in the prompts, and also, on
Windows the entire prompt text is copy-pastable.
Details of implementation: there's a new type SeatDialogText which
holds a set of (type, string) pairs describing the contents of a
prompt. Type codes distinguish ordinary text paragraphs, paragraphs to
be displayed prominently (like key fingerprints), the extra-bold scary
title at the top of the 'host key changed' version of the dialog, and
the various information that lives in the subsidiary 'more info' box.
ssh/common.c constructs this, and passes it to the Seat to present the
actual prompt.
In order to deal with the different UI for answering the prompt, I've
added an extra Seat method 'prompt_descriptions' which returns some
snippets of text to interpolate into the messages. ssh/common.c calls
that while it's still constructing the text, and incorporates the
resulting snippets into the SeatDialogText.
For the moment, this refactoring only affects the host key prompts.
The warnings about outmoded crypto are still done the old-fashioned
way; they probably ought to be similarly refactored to use this new
SeatDialogText system, but it's not immediately critical for the
purpose I have right now.
2022-07-07 16:25:15 +00:00
|
|
|
IDD_HK_MOREINFO DIALOG DISCARDABLE 140, 40, 400, 300
|
2021-03-13 11:06:32 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "PuTTY: information about the server's host key"
|
|
|
|
FONT 8, "MS Shell Dlg"
|
2022-07-07 16:23:27 +00:00
|
|
|
CLASS "PuTTYHostKeyMoreInfo"
|
2021-03-13 11:06:32 +00:00
|
|
|
BEGIN
|
|
|
|
DEFPUSHBUTTON "&Close", IDOK, 176, 130, 48, 14
|
2021-02-28 13:40:22 +00:00
|
|
|
END
|
|
|
|
|
Initial support for host certificates.
Now we offer the OpenSSH certificate key types in our KEXINIT host key
algorithm list, so that if the server has a certificate, they can send
it to us.
There's a new storage.h abstraction for representing a list of trusted
host CAs, and which ones are trusted to certify hosts for what
domains. This is stored outside the normal saved session data, because
the whole point of host certificates is to avoid per-host faffing.
Configuring this set of trusted CAs is done via a new GUI dialog box,
separate from the main PuTTY config box (because it modifies a single
set of settings across all saved sessions), which you can launch by
clicking a button in the 'Host keys' pane. The GUI is pretty crude for
the moment, and very much at a 'just about usable' stage right now. It
will want some polishing.
If we have no CA configured that matches the hostname, we don't offer
to receive certified host keys in the first place. So for existing
users who haven't set any of this up yet, nothing will immediately
change.
Currently, if we do offer to receive certified host keys and the
server presents one signed by a CA we don't trust, PuTTY will bomb out
unconditionally with an error, instead of offering a confirmation box.
That's an unfinished part which I plan to fix before this goes into a
release.
2022-04-22 11:07:24 +00:00
|
|
|
/* Accelerators used: aco */
|
2022-05-05 19:26:05 +00:00
|
|
|
IDD_CA_CONFIG DIALOG DISCARDABLE 0, 0, 350, 260
|
Initial support for host certificates.
Now we offer the OpenSSH certificate key types in our KEXINIT host key
algorithm list, so that if the server has a certificate, they can send
it to us.
There's a new storage.h abstraction for representing a list of trusted
host CAs, and which ones are trusted to certify hosts for what
domains. This is stored outside the normal saved session data, because
the whole point of host certificates is to avoid per-host faffing.
Configuring this set of trusted CAs is done via a new GUI dialog box,
separate from the main PuTTY config box (because it modifies a single
set of settings across all saved sessions), which you can launch by
clicking a button in the 'Host keys' pane. The GUI is pretty crude for
the moment, and very much at a 'just about usable' stage right now. It
will want some polishing.
If we have no CA configured that matches the hostname, we don't offer
to receive certified host keys in the first place. So for existing
users who haven't set any of this up yet, nothing will immediately
change.
Currently, if we do offer to receive certified host keys and the
server presents one signed by a CA we don't trust, PuTTY will bomb out
unconditionally with an error, instead of offering a confirmation box.
That's an unfinished part which I plan to fix before this goes into a
release.
2022-04-22 11:07:24 +00:00
|
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
|
|
CAPTION "PuTTY trusted host certification authorities"
|
|
|
|
FONT 8, "MS Shell Dlg"
|
|
|
|
CLASS "PuTTYConfigBox"
|
|
|
|
BEGIN
|
|
|
|
END
|
|
|
|
|
2005-10-04 14:13:28 +00:00
|
|
|
#include "version.rc2"
|