mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-01 03:22:48 -05:00
CA config box: fully validate the CA public key.
Now we check that we can actually make an ssh_key out of it, and moreover, that the key is of a sensible kind (i.e. not a certificate in turn). If that's not true, we report something about the problem in a new CTRL_TEXT below the public key input box. If the key _is_ valid, that same text control is used to show its type, length and fingerprint. On Windows, I've widened the dialog box a little to make fingerprints fit sensibly in it.
This commit is contained in:
@ -1186,8 +1186,8 @@ static INT_PTR CAConfigProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam,
|
||||
|
||||
centre_window(hwnd);
|
||||
|
||||
pds_create_controls(pds, 0, IDCX_PANELBASE, 3, 3, 13, "Main");
|
||||
pds_create_controls(pds, 0, IDCX_STDBASE, 3, 3, 235, "");
|
||||
pds_create_controls(pds, 0, IDCX_PANELBASE, 3, 3, 3, "Main");
|
||||
pds_create_controls(pds, 0, IDCX_STDBASE, 3, 3, 243, "");
|
||||
dlg_refresh(NULL, pds->dp); /* and set up control values */
|
||||
|
||||
pds_initdialog_finish(pds);
|
||||
|
@ -131,7 +131,7 @@ BEGIN
|
||||
END
|
||||
|
||||
/* Accelerators used: aco */
|
||||
IDD_CA_CONFIG DIALOG DISCARDABLE 0, 0, 300, 252
|
||||
IDD_CA_CONFIG DIALOG DISCARDABLE 0, 0, 350, 260
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "PuTTY trusted host certification authorities"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
|
Reference in New Issue
Block a user