Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

299 lines
13 KiB

  1. #include "windows.h"
  2. #include "resource.h"
  3. #include "richedit.h"
  4. #ifndef WIN16
  5. #include <commctrl.h>
  6. #else // WIN16
  7. #include <win16x.h>
  8. #include <comctlie.h>
  9. #include <athena16.h>
  10. #endif // WIN16
  11. #ifndef MAC
  12. #if defined(WINNT) || defined(WINNT_ENV)
  13. #include "winver.h"
  14. #endif
  15. #include "cryptdlg.rcv"
  16. #endif // !MAC
  17. #ifdef MAC
  18. #undef TVS_HASLINES
  19. #define TVS_HASLINES 0
  20. #endif // MAC
  21. /////////////////////////////////////////////////////////////////////////////
  22. //
  23. // Dialog
  24. //
  25. IDD_CERTPROP_GENERAL DIALOG DISCARDABLE 0, 0, 255, 235
  26. STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
  27. CAPTION "General"
  28. FONT 8, "MS Shell Dlg"
  29. BEGIN
  30. #if !defined( MAC ) && !defined( WIN16 )
  31. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  32. #endif
  33. CONTROL IDB_CROSS,IDC_CERT_STATUS_IMAGE,"Static",SS_BITMAP,15,22,11,10
  34. LTEXT "There is a problem with this certificate",
  35. IDC_CERT_STATUS,32,23,152,8
  36. PUSHBUTTON "Fine Print...",IDC_FINE_PRINT,191,20,49,14
  37. CONTROL "Static",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_READONLY,
  38. 15,44,225,37
  39. GROUPBOX "What is a certificate?",IDC_STATIC,7,97,241,85
  40. LTEXT "A certificate is...",IDC_GENERAL_DESC,16,110,223,65
  41. GROUPBOX "Certificate Information",IDC_STATIC,7,7,241,81
  42. END
  43. IDD_CERTPROP_DETAILS DIALOG DISCARDABLE 0, 0, 255, 235
  44. STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
  45. CAPTION "Details"
  46. FONT 8, "MS Shell Dlg"
  47. BEGIN
  48. #if !defined( MAC ) && !defined( WIN16 )
  49. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  50. #endif
  51. EDITTEXT IDC_FRIENDLY_NAME,66,126,182,14,ES_AUTOHSCROLL
  52. PUSHBUTTON "Why...",IDC_WHY,215,202,28,14,NOT WS_VISIBLE
  53. LTEXT "This certificate was issued to:",IDC_STATIC,7,7,94,8
  54. EDITTEXT IDC_ISSUED_TO,7,16,241,34,ES_MULTILINE | ES_READONLY |
  55. WS_VSCROLL
  56. LTEXT "Issued by:",IDC_STATIC,7,56,33,8
  57. EDITTEXT IDC_ISSUED_BY,7,65,241,34,ES_MULTILINE | ES_READONLY |
  58. WS_VSCROLL
  59. PUSHBUTTON "Issuer Certificate...",IDC_VIEW_ISSUER,178,104,70,14
  60. LTEXT "Friendly Name:",IDC_STATIC,7,128,48,8
  61. LTEXT "Val",IDC_VALIDITY,7,145,231,8
  62. LTEXT "Algorithm:",IDC_STATIC,7,156,32,8
  63. LTEXT "Static",IDC_ALGORITHM,58,156,190,8
  64. LTEXT "Serial Number:",IDC_STATIC,7,167,47,8
  65. LTEXT "Static",IDC_SERIAL_NUMBER,58,167,190,8
  66. LTEXT "Thumbprint:",IDC_STATIC,7,178,38,8
  67. LTEXT "Static",IDC_THUMBPRINT,58,178,190,8
  68. GROUPBOX "Status",IDC_TRUST_GROUP,7,191,241,37
  69. CONTROL 301,IDC_TRUST_IMAGE,"Static",SS_BITMAP,17,207,11,10
  70. LTEXT "",IDC_IS_TRUSTED,58,201,150,8
  71. LTEXT "",IDC_IS_VALID,58,214,150,8
  72. END
  73. IDD_CERTPROP_TRUST DIALOG DISCARDABLE 0, 0, 256, 235
  74. STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
  75. CAPTION "Trust"
  76. FONT 8, "MS Shell Dlg"
  77. BEGIN
  78. #if !defined( MAC ) && !defined( WIN16 )
  79. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  80. #endif
  81. GROUPBOX "Edit Trust",IDC_TRUST_EDIT_GROUP,8,153,241,51
  82. CONTROL "Inherit Trust from Issuer",IDC_TRUST_INHERIT,"Button",
  83. BS_AUTORADIOBUTTON | WS_GROUP,25,165,124,10
  84. CONTROL "Explicitly Trust this Certificate",IDC_TRUST_YES,"Button",
  85. BS_AUTORADIOBUTTON,25,177,124,10
  86. CONTROL "Explicitly Don't Trust this Certificate",IDC_TRUST_NO,
  87. "Button",BS_AUTORADIOBUTTON,25,189,124,10
  88. LTEXT "Trust Description",IDC_TRUST_DESC,7,7,242,25
  89. LTEXT "",IDC_TRUST_EDIT,15,48,227,27,WS_TABSTOP
  90. LISTBOX IDC_TRUST_LIST,14,48,227,27,LBS_SORT |
  91. LBS_NOINTEGRALHEIGHT | NOT WS_VISIBLE | WS_VSCROLL |
  92. WS_TABSTOP
  93. GROUPBOX "Certificate trusted for",IDC_STATIC,7,36,242,45
  94. LTEXT "Hierarchy:",IDC_STATIC,7,87,40,8
  95. CONTROL "Tree1",IDC_TRUST_TREE,"SysTreeView32",TVS_HASLINES |
  96. WS_BORDER | WS_TABSTOP,7,98,202,41
  97. PUSHBUTTON "View ...",IDC_TRUST_VIEW,216,98,33,15,WS_DISABLED
  98. END
  99. IDD_CERTPROP_ADVANCED DIALOG DISCARDABLE 0, 0, 255, 235
  100. STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
  101. CAPTION "Advanced"
  102. FONT 8, "MS Shell Dlg"
  103. BEGIN
  104. #if !defined( MAC ) && !defined( WIN16 )
  105. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  106. #endif
  107. LTEXT "Field:",IDC_STATIC,7,19,18,8
  108. LISTBOX IDC_LIST1,7,28,241,49,LBS_NOINTEGRALHEIGHT | WS_VSCROLL |
  109. WS_TABSTOP
  110. LTEXT "Details:",IDC_STATIC,7,86,24,8
  111. CONTROL "Static",IDC_EDIT1,"RICHEDIT",ES_MULTILINE | ES_READONLY |
  112. ES_SUNKEN | WS_VSCROLL,7,95,241,90
  113. LTEXT "Advanced information for this certificate",IDC_STATIC,7,
  114. 7,241,8
  115. END
  116. IDD_SELECT_DIALOG DIALOG DISCARDABLE 0, 0, 297, 169
  117. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU | DS_CONTEXTHELP
  118. CAPTION "Select a Certificate"
  119. FONT 8, "MS Shell Dlg"
  120. BEGIN
  121. #if !defined( MAC ) && !defined( WIN16 )
  122. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  123. #endif
  124. DEFPUSHBUTTON "OK",IDOK,240,11,50,14
  125. PUSHBUTTON "Cancel",IDCANCEL,240,30,50,14
  126. PUSHBUTTON "&Properties...",IDC_CS_PROPERTIES,240,49,50,14
  127. PUSHBUTTON "&Fine Print...",IDC_CS_FINEPRINT,240,68,50,14
  128. PUSHBUTTON "Help",9,240,87,50,14,NOT WS_VISIBLE
  129. GROUPBOX "Certificates",IDC_STATIC,7,7,226,155
  130. LTEXT "Issuer:Subject",IDC_STATIC,15,19,46,8
  131. LISTBOX IDC_CS_CERTLIST,15,29,209,47,LBS_SORT |
  132. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  133. LTEXT "Summary:",IDC_STATIC,15,87,79,8
  134. LTEXT "Certificate Issued to",IDC_CS_INFO,15,99,211,8
  135. LTEXT "Validity",IDC_CS_VALIDITY,15,111,211,8
  136. LTEXT "Algorithm:",IDC_STATIC,15,123,32,8
  137. LTEXT "",IDC_CS_ALGORITHM,15,123,211,8
  138. LTEXT "Serial Number:",IDC_STATIC,15,135,46,8
  139. LTEXT "",IDC_CS_SERIAL_NUMBER,15,135,211,8
  140. LTEXT "Thumbprint:",IDC_STATIC,15,147,38,8
  141. LTEXT "",IDC_CS_THUMBPRINT,15,147,211,8
  142. END
  143. #if 0
  144. IDD_TRUST DIALOG DISCARDABLE 0, 0, 337, 214
  145. STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
  146. CAPTION "Configure Trust for"
  147. FONT 8, "MS Shell Dlg"
  148. BEGIN
  149. #if !defined( MAC ) && !defined( WIN16 )
  150. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  151. #endif
  152. DEFPUSHBUTTON "OK",IDOK,214,193,50,14
  153. PUSHBUTTON "Cancel",IDCANCEL,280,193,50,14
  154. LTEXT "The Certificates you trust:",IDC_STATIC,7,7,81,8
  155. LISTBOX IDC_CA_CERT_LIST,7,20,263,68,LBS_SORT |
  156. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  157. PUSHBUTTON "Add...",IDC_CA_CERT_ADD,280,23,50,14
  158. PUSHBUTTON "Remove",IDC_CA_CERT_REMOVE,280,40,50,14
  159. PUSHBUTTON "Properties...",IDC_CA_CERT_PROPS,280,57,50,14
  160. LTEXT "And these certificates:",IDC_STATIC,7,102,71,8
  161. LISTBOX IDC_INDIV_CERT_LIST,7,116,264,61,LBS_SORT |
  162. LBS_NOINTEGRALHEIGHT | WS_VSCROLL | WS_TABSTOP
  163. PUSHBUTTON "Add...",IDC_INDIV_CERT_ADD,280,118,50,14
  164. PUSHBUTTON "Remove",IDC_INDIV_CERT_REMOVE,280,137,50,14
  165. PUSHBUTTON "Properties...",IDC_INDIV_CERT_PROPS,280,156,50,14
  166. PUSHBUTTON "Distrust...",IDC_DISTRUST,31,193,50,14
  167. END
  168. #endif // 0
  169. IDD_FINE_PRINT DIALOG DISCARDABLE 0, 0, 222, 193
  170. STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU | DS_3DLOOK
  171. CAPTION "Certificate Fine Print"
  172. FONT 8, "MS Shell Dlg"
  173. BEGIN
  174. #if !defined( MAC ) && !defined( WIN16 )
  175. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  176. #endif
  177. DEFPUSHBUTTON "OK",IDOK,82,168,57,14
  178. LTEXT "This certificate was issued to:",IDC_STATIC,7,7,94,8
  179. CONTROL "TO",IDC_ISSUED_TO,"RICHEDIT",ES_MULTILINE | ES_READONLY |
  180. ES_SUNKEN | WS_VSCROLL,7,17,208,36
  181. LTEXT "Issued by:",IDC_STATIC,7,59,33,8
  182. CONTROL "BY",IDC_ISSUED_BY,"RICHEDIT",ES_MULTILINE | ES_READONLY |
  183. ES_SUNKEN | WS_VSCROLL,7,69,208,36
  184. LTEXT "Policy Statement",IDC_STATIC,7,112,63,8
  185. CONTROL "None",IDC_TEXT,"RICHEDIT",ES_MULTILINE | ES_READONLY |
  186. ES_SUNKEN | WS_VSCROLL,7,120,208,40
  187. END
  188. IDD_CRYPTUI_CERTPROP_TRUST DIALOG DISCARDABLE 0, 0, 256, 235
  189. STYLE WS_CHILD | WS_VISIBLE | WS_CAPTION
  190. CAPTION "Trust"
  191. FONT 8, "MS Shell Dlg"
  192. BEGIN
  193. #if !defined( MAC ) && !defined( WIN16 )
  194. CONTROL "",-1,"NativeFontCtl",NFS_EDIT | NFS_STATIC,0,0,0,0
  195. #endif
  196. GROUPBOX "Edit Trust",IDC_TRUST_EDIT_GROUP,8,153,241,51
  197. CONTROL "Inherit Trust from Issuer",IDC_TRUST_INHERIT,"Button",
  198. BS_AUTORADIOBUTTON | WS_GROUP,25,165,124,10
  199. CONTROL "Explicitly Trust this Certificate",IDC_TRUST_YES,"Button",
  200. BS_AUTORADIOBUTTON,25,177,124,10
  201. CONTROL "Explicitly Don't Trust this Certificate",IDC_TRUST_NO,
  202. "Button",BS_AUTORADIOBUTTON,25,189,124,10
  203. LTEXT "Trust Description",IDC_TRUST_DESC,7,7,242,49
  204. LTEXT "",IDC_TRUST_EDIT,15,72,227,27,NOT WS_TABSTOP
  205. LISTBOX IDC_TRUST_LIST,14,72,227,27,LBS_SORT |
  206. LBS_NOINTEGRALHEIGHT | NOT WS_VISIBLE | WS_VSCROLL |
  207. NOT WS_TABSTOP
  208. GROUPBOX "Certificate trusted for",IDC_STATIC,8,60,242,45
  209. END
  210. /////////////////////////////////////////////////////////////////////////////
  211. //
  212. // Bitmap
  213. //
  214. IDB_TICK BITMAP DISCARDABLE "res\\tick.bmp"
  215. //IDB_QUEST BITMAP DISCARDABLE "res\\quest.bmp"
  216. IDB_CROSS BITMAP DISCARDABLE "res\\cross.bmp"
  217. IDB_TREE_IMAGES BITMAP DISCARDABLE "res\\trust.bmp"
  218. /////////////////////////////////////////////////////////////////////////////
  219. //
  220. // Strings
  221. //
  222. STRINGTABLE DISCARDABLE
  223. BEGIN
  224. IDS_SELECT_INFO "Certificate Issued to %1 from %2"
  225. IDS_GENERAL_INFO "This certificate is for %1 and was issued by %2"
  226. IDS_GENERAL_FRIENDLY "This certificate is for %1 (%3) and was issued by %2"
  227. IDS_GENERAL_TICK "This certificate is OK"
  228. // IDS_GENERAL_QUEST "There may be a problem with this certificate"
  229. IDS_GENERAL_CROSS "There is a problem with this certificate"
  230. IDS_GENERAL_DESC "A Certificate is issued by a Certification Authority to individuals, groups and corporations that it recognizes.\n\n"
  231. 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"
  232. IDS_GENERAL_DESC3 "A Certificate can also be used to encrypt information to prevent other people from viewing it."
  233. IDS_GENERAL_DESC4 " "
  234. IDS_GENERAL_DESC5 " "
  235. IDS_GENERAL_DESC6 " "
  236. IDS_DETAIL_VALID_TICK "This certificate is valid"
  237. IDS_DETAIL_VALID_CROSS "This certificate is not valid"
  238. IDS_DETAIL_TRUST_TICK "You trust this certificate"
  239. IDS_DETAIL_TRUST_CROSS "You do not trust this certificate"
  240. IDS_ADV_VERSION "Version"
  241. IDS_ADV_SER_NUM "Serial Number"
  242. IDS_ADV_SIG_ALG "Signature Algorithm"
  243. IDS_ADV_ISSUER "Issuer"
  244. IDS_ADV_NOTBEFORE "Effective Date"
  245. IDS_ADV_NOTAFTER "Expiration Date"
  246. IDS_ADV_SUBJECT "Subject"
  247. IDS_ADV_PUBKEY "Public Key"
  248. IDS_WHY_NOT_YET "Start date has not been reached"
  249. IDS_WHY_EXPIRED "Expiration date has passed"
  250. IDS_WHY_CERT_SIG "Certificate has been tampered with"
  251. IDS_WHY_NO_PARENT "Unable to get a full chain"
  252. IDS_WHY_REVOKED "Certificate is revoked"
  253. IDS_WHY_KEY_USAGE "Certificate used for wrong purpose"
  254. IDS_WHY_BASIC_CONS "Certificate used for wrong purpose"
  255. IDS_WHY_EXTEND_USE "Certificate not valid for this purpose"
  256. IDS_WHY_NAME_CONST "Excluded or not permitted name"
  257. IDS_WHY_POLICY "Certificate has invalid policy"
  258. IDS_WHY_NO_CRL "Expired or offline revocation list"
  259. IDS_TRUST_DESC "Trust Status indicates whether you trust the individual, group or corporation to whom this certificate is issued. "
  260. 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."
  261. IDS_TRUST_DESC3 " "
  262. IDS_TRUST_DESC4 " "
  263. IDS_VIEW_TITLE "Certificate Properties"
  264. #ifdef MAC
  265. IDS_VALIDITY_FORMAT "Valid from %s to %s"
  266. #else // !MAC
  267. IDS_VALIDITY_FORMAT "Valid from %1 to %2"
  268. #endif // MAC
  269. IDS_ROOT_ADD_STRING "To save these changes, click Yes when prompted to add a certificate to the Root Store."
  270. IDS_ROOT_ADD_TITLE "Edit Trust"
  271. IDS_EMAIL_DESC "E-Mail Encryption and Authentication"
  272. END