300 lines
13 KiB
Plaintext
300 lines
13 KiB
Plaintext
#include "windows.h"
|
|
#include "resource.h"
|
|
#include "richedit.h"
|
|
#ifndef WIN16
|
|
#include <commctrl.h>
|
|
#else // WIN16
|
|
#include <win16x.h>
|
|
#include <comctlie.h>
|
|
#include <athena16.h>
|
|
#endif // WIN16
|
|
|
|
#ifndef MAC
|
|
#if defined(WINNT) || defined(WINNT_ENV)
|
|
#include "winver.h"
|
|
#endif
|
|
#include "cryptdlg.rcv"
|
|
#endif // !MAC
|
|
|
|
#ifdef MAC
|
|
#undef TVS_HASLINES
|
|
#define TVS_HASLINES 0
|
|
#endif // MAC
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Dialog
|
|
//
|
|
|
|
IDD_CERTPROP_GENERAL DIALOG DISCARDABLE 0, 0, 255, 235
|
|
STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
|
|
CAPTION "General"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
CONTROL IDB_CROSS,IDC_CERT_STATUS_IMAGE,"Static",SS_BITMAP,15,22,11,10
|
|
LTEXT "There is a problem with this certificate",
|
|
IDC_CERT_STATUS,32,23,152,8
|
|
PUSHBUTTON "Fine Print...",IDC_FINE_PRINT,191,20,49,14
|
|
CONTROL "Static",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_READONLY,
|
|
15,44,225,37
|
|
GROUPBOX "What is a certificate?",IDC_STATIC,7,97,241,85
|
|
LTEXT "A certificate is...",IDC_GENERAL_DESC,16,110,223,65
|
|
GROUPBOX "Certificate Information",IDC_STATIC,7,7,241,81
|
|
END
|
|
|
|
IDD_CERTPROP_DETAILS DIALOG DISCARDABLE 0, 0, 255, 235
|
|
STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
|
|
CAPTION "Details"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
EDITTEXT IDC_FRIENDLY_NAME,66,126,182,14,ES_AUTOHSCROLL
|
|
PUSHBUTTON "Why...",IDC_WHY,215,202,28,14,NOT WS_VISIBLE
|
|
LTEXT "This certificate was issued to:",IDC_STATIC,7,7,94,8
|
|
EDITTEXT IDC_ISSUED_TO,7,16,241,34,ES_MULTILINE | ES_READONLY |
|
|
WS_VSCROLL
|
|
LTEXT "Issued by:",IDC_STATIC,7,56,33,8
|
|
EDITTEXT IDC_ISSUED_BY,7,65,241,34,ES_MULTILINE | ES_READONLY |
|
|
WS_VSCROLL
|
|
PUSHBUTTON "Issuer Certificate...",IDC_VIEW_ISSUER,178,104,70,14
|
|
LTEXT "Friendly Name:",IDC_STATIC,7,128,48,8
|
|
LTEXT "Val",IDC_VALIDITY,7,145,231,8
|
|
LTEXT "Algorithm:",IDC_STATIC,7,156,32,8
|
|
LTEXT "Static",IDC_ALGORITHM,58,156,190,8
|
|
LTEXT "Serial Number:",IDC_STATIC,7,167,47,8
|
|
LTEXT "Static",IDC_SERIAL_NUMBER,58,167,190,8
|
|
LTEXT "Thumbprint:",IDC_STATIC,7,178,38,8
|
|
LTEXT "Static",IDC_THUMBPRINT,58,178,190,8
|
|
GROUPBOX "Status",IDC_TRUST_GROUP,7,191,241,37
|
|
CONTROL 301,IDC_TRUST_IMAGE,"Static",SS_BITMAP,17,207,11,10
|
|
LTEXT "",IDC_IS_TRUSTED,58,201,150,8
|
|
LTEXT "",IDC_IS_VALID,58,214,150,8
|
|
END
|
|
|
|
IDD_CERTPROP_TRUST DIALOG DISCARDABLE 0, 0, 256, 235
|
|
STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
|
|
CAPTION "Trust"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
GROUPBOX "Edit Trust",IDC_TRUST_EDIT_GROUP,8,153,241,51
|
|
CONTROL "Inherit Trust from Issuer",IDC_TRUST_INHERIT,"Button",
|
|
BS_AUTORADIOBUTTON | WS_GROUP,25,165,124,10
|
|
CONTROL "Explicitly Trust this Certificate",IDC_TRUST_YES,"Button",
|
|
BS_AUTORADIOBUTTON,25,177,124,10
|
|
CONTROL "Explicitly Don't Trust this Certificate",IDC_TRUST_NO,
|
|
"Button",BS_AUTORADIOBUTTON,25,189,124,10
|
|
LTEXT "Trust Description",IDC_TRUST_DESC,7,7,242,25
|
|
LTEXT "",IDC_TRUST_EDIT,15,48,227,27,WS_TABSTOP
|
|
LISTBOX IDC_TRUST_LIST,14,48,227,27,LBS_SORT |
|
|
LBS_NOINTEGRALHEIGHT | NOT WS_VISIBLE | WS_VSCROLL |
|
|
WS_TABSTOP
|
|
GROUPBOX "Certificate trusted for",IDC_STATIC,7,36,242,45
|
|
LTEXT "Hierarchy:",IDC_STATIC,7,87,40,8
|
|
CONTROL "Tree1",IDC_TRUST_TREE,"SysTreeView32",TVS_HASLINES |
|
|
WS_BORDER | WS_TABSTOP,7,98,202,41
|
|
PUSHBUTTON "View ...",IDC_TRUST_VIEW,216,98,33,15,WS_DISABLED
|
|
END
|
|
|
|
IDD_CERTPROP_ADVANCED DIALOG DISCARDABLE 0, 0, 255, 235
|
|
STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
|
|
CAPTION "Advanced"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
LTEXT "Field:",IDC_STATIC,7,19,18,8
|
|
LISTBOX IDC_LIST1,7,28,241,49,LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
|
|
WS_TABSTOP
|
|
LTEXT "Details:",IDC_STATIC,7,86,24,8
|
|
CONTROL "Static",IDC_EDIT1,"RICHEDIT",ES_MULTILINE | ES_READONLY |
|
|
ES_SUNKEN | WS_VSCROLL,7,95,241,90
|
|
LTEXT "Advanced information for this certificate",IDC_STATIC,7,
|
|
7,241,8
|
|
|
|
END
|
|
|
|
IDD_SELECT_DIALOG DIALOG DISCARDABLE 0, 0, 297, 169
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
|
|
CAPTION "Select a Certificate"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
DEFPUSHBUTTON "OK",IDOK,240,11,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,240,30,50,14
|
|
PUSHBUTTON "&Properties...",IDC_CS_PROPERTIES,240,49,50,14
|
|
PUSHBUTTON "&Fine Print...",IDC_CS_FINEPRINT,240,68,50,14
|
|
PUSHBUTTON "Help",9,240,87,50,14,NOT WS_VISIBLE
|
|
GROUPBOX "Certificates",IDC_STATIC,7,7,226,155
|
|
LTEXT "Issuer:Subject",IDC_STATIC,15,19,46,8
|
|
LISTBOX IDC_CS_CERTLIST,15,29,209,47,LBS_SORT |
|
|
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
|
LTEXT "Summary:",IDC_STATIC,15,87,79,8
|
|
LTEXT "Certificate Issued to",IDC_CS_INFO,15,99,211,8
|
|
LTEXT "Validity",IDC_CS_VALIDITY,15,111,211,8
|
|
LTEXT "Algorithm:",IDC_STATIC,15,123,32,8
|
|
LTEXT "",IDC_CS_ALGORITHM,15,123,211,8
|
|
LTEXT "Serial Number:",IDC_STATIC,15,135,46,8
|
|
LTEXT "",IDC_CS_SERIAL_NUMBER,15,135,211,8
|
|
LTEXT "Thumbprint:",IDC_STATIC,15,147,38,8
|
|
LTEXT "",IDC_CS_THUMBPRINT,15,147,211,8
|
|
END
|
|
|
|
#if 0
|
|
IDD_TRUST DIALOG DISCARDABLE 0, 0, 337, 214
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
|
|
CAPTION "Configure Trust for"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
DEFPUSHBUTTON "OK",IDOK,214,193,50,14
|
|
PUSHBUTTON "Cancel",IDCANCEL,280,193,50,14
|
|
LTEXT "The Certificates you trust:",IDC_STATIC,7,7,81,8
|
|
LISTBOX IDC_CA_CERT_LIST,7,20,263,68,LBS_SORT |
|
|
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
|
PUSHBUTTON "Add...",IDC_CA_CERT_ADD,280,23,50,14
|
|
PUSHBUTTON "Remove",IDC_CA_CERT_REMOVE,280,40,50,14
|
|
PUSHBUTTON "Properties...",IDC_CA_CERT_PROPS,280,57,50,14
|
|
LTEXT "And these certificates:",IDC_STATIC,7,102,71,8
|
|
LISTBOX IDC_INDIV_CERT_LIST,7,116,264,61,LBS_SORT |
|
|
LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
|
|
PUSHBUTTON "Add...",IDC_INDIV_CERT_ADD,280,118,50,14
|
|
PUSHBUTTON "Remove",IDC_INDIV_CERT_REMOVE,280,137,50,14
|
|
PUSHBUTTON "Properties...",IDC_INDIV_CERT_PROPS,280,156,50,14
|
|
PUSHBUTTON "Distrust...",IDC_DISTRUST,31,193,50,14
|
|
END
|
|
#endif // 0
|
|
|
|
IDD_FINE_PRINT DIALOG DISCARDABLE 0, 0, 222, 193
|
|
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_3DLOOK
|
|
CAPTION "Certificate Fine Print"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
DEFPUSHBUTTON "OK",IDOK,82,168,57,14
|
|
LTEXT "This certificate was issued to:",IDC_STATIC,7,7,94,8
|
|
CONTROL "TO",IDC_ISSUED_TO,"RICHEDIT",ES_MULTILINE | ES_READONLY |
|
|
ES_SUNKEN | WS_VSCROLL,7,17,208,36
|
|
LTEXT "Issued by:",IDC_STATIC,7,59,33,8
|
|
CONTROL "BY",IDC_ISSUED_BY,"RICHEDIT",ES_MULTILINE | ES_READONLY |
|
|
ES_SUNKEN | WS_VSCROLL,7,69,208,36
|
|
LTEXT "Policy Statement",IDC_STATIC,7,112,63,8
|
|
CONTROL "None",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_READONLY |
|
|
ES_SUNKEN | WS_VSCROLL,7,120,208,40
|
|
END
|
|
|
|
IDD_CRYPTUI_CERTPROP_TRUST DIALOG DISCARDABLE 0, 0, 256, 235
|
|
STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
|
|
CAPTION "Trust"
|
|
FONT 8, "MS Shell Dlg"
|
|
BEGIN
|
|
#if !defined( MAC ) && !defined( WIN16 )
|
|
CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
|
|
#endif
|
|
GROUPBOX "Edit Trust",IDC_TRUST_EDIT_GROUP,8,153,241,51
|
|
CONTROL "Inherit Trust from Issuer",IDC_TRUST_INHERIT,"Button",
|
|
BS_AUTORADIOBUTTON | WS_GROUP,25,165,124,10
|
|
CONTROL "Explicitly Trust this Certificate",IDC_TRUST_YES,"Button",
|
|
BS_AUTORADIOBUTTON,25,177,124,10
|
|
CONTROL "Explicitly Don't Trust this Certificate",IDC_TRUST_NO,
|
|
"Button",BS_AUTORADIOBUTTON,25,189,124,10
|
|
LTEXT "Trust Description",IDC_TRUST_DESC,7,7,242,49
|
|
LTEXT "",IDC_TRUST_EDIT,15,72,227,27,NOT WS_TABSTOP
|
|
LISTBOX IDC_TRUST_LIST,14,72,227,27,LBS_SORT |
|
|
LBS_NOINTEGRALHEIGHT | NOT WS_VISIBLE | WS_VSCROLL |
|
|
NOT WS_TABSTOP
|
|
GROUPBOX "Certificate trusted for",IDC_STATIC,8,60,242,45
|
|
END
|
|
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Bitmap
|
|
//
|
|
|
|
IDB_TICK BITMAP DISCARDABLE "res\\tick.bmp"
|
|
//IDB_QUEST BITMAP DISCARDABLE "res\\quest.bmp"
|
|
IDB_CROSS BITMAP DISCARDABLE "res\\cross.bmp"
|
|
IDB_TREE_IMAGES BITMAP DISCARDABLE "res\\trust.bmp"
|
|
|
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Strings
|
|
//
|
|
|
|
STRINGTABLE DISCARDABLE
|
|
BEGIN
|
|
IDS_SELECT_INFO "Certificate Issued to %1 from %2"
|
|
|
|
IDS_GENERAL_INFO "This certificate is for %1 and was issued by %2"
|
|
IDS_GENERAL_FRIENDLY "This certificate is for %1 (%3) and was issued by %2"
|
|
|
|
IDS_GENERAL_TICK "This certificate is OK"
|
|
// IDS_GENERAL_QUEST "There may be a problem with this certificate"
|
|
IDS_GENERAL_CROSS "There is a problem with this certificate"
|
|
IDS_GENERAL_DESC "A Certificate is issued by a Certification Authority to individuals, groups and corporations that it recognizes.\n\n"
|
|
IDS_GENERAL_DESC2 "A Certificate can be used to digitally sign a piece of information so that you can determine the author of the information.\n\n"
|
|
IDS_GENERAL_DESC3 "A Certificate can also be used to encrypt information to prevent other people from viewing it."
|
|
IDS_GENERAL_DESC4 " "
|
|
IDS_GENERAL_DESC5 " "
|
|
IDS_GENERAL_DESC6 " "
|
|
|
|
IDS_DETAIL_VALID_TICK "This certificate is valid"
|
|
IDS_DETAIL_VALID_CROSS "This certificate is not valid"
|
|
IDS_DETAIL_TRUST_TICK "You trust this certificate"
|
|
IDS_DETAIL_TRUST_CROSS "You do not trust this certificate"
|
|
|
|
IDS_ADV_VERSION "Version"
|
|
IDS_ADV_SER_NUM "Serial Number"
|
|
IDS_ADV_SIG_ALG "Signature Algorithm"
|
|
IDS_ADV_ISSUER "Issuer"
|
|
IDS_ADV_NOTBEFORE "Effective Date"
|
|
IDS_ADV_NOTAFTER "Expiration Date"
|
|
IDS_ADV_SUBJECT "Subject"
|
|
IDS_ADV_PUBKEY "Public Key"
|
|
|
|
IDS_WHY_NOT_YET "Start date has not been reached"
|
|
IDS_WHY_EXPIRED "Expiration date has passed"
|
|
IDS_WHY_CERT_SIG "Certificate has been tampered with"
|
|
IDS_WHY_NO_PARENT "Unable to get a full chain"
|
|
IDS_WHY_REVOKED "Certificate is revoked"
|
|
IDS_WHY_KEY_USAGE "Certificate used for wrong purpose"
|
|
IDS_WHY_BASIC_CONS "Certificate used for wrong purpose"
|
|
IDS_WHY_EXTEND_USE "Certificate not valid for this purpose"
|
|
IDS_WHY_NAME_CONST "Excluded or not permitted name"
|
|
IDS_WHY_POLICY "Certificate has invalid policy"
|
|
IDS_WHY_NO_CRL "Expired or offline revocation list"
|
|
|
|
IDS_TRUST_DESC "Trust Status indicates whether you trust the individual, group or corporation to whom this certificate is issued. "
|
|
IDS_TRUST_DESC2 "The certificate can then be used for the specified purposes such as sending/receiving e-mail, trusting a web site having the certificate, etc."
|
|
IDS_TRUST_DESC3 " "
|
|
IDS_TRUST_DESC4 " "
|
|
|
|
IDS_VIEW_TITLE "Certificate Properties"
|
|
#ifdef MAC
|
|
IDS_VALIDITY_FORMAT "Valid from %s to %s"
|
|
#else // !MAC
|
|
IDS_VALIDITY_FORMAT "Valid from %1 to %2"
|
|
#endif // MAC
|
|
|
|
IDS_ROOT_ADD_STRING "To save these changes, click Yes when prompted to add a certificate to the Root Store."
|
|
IDS_ROOT_ADD_TITLE "Edit Trust"
|
|
IDS_EMAIL_DESC "E-Mail Encryption and Authentication"
|
|
END
|