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.

159 lines
3.9 KiB

  1. #if !defined(AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_)
  2. #define AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // KeyPassword.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // CKeyPasswordPage dialog
  10. class CCertificate;
  11. class CKeyPasswordPage : public CIISWizardPage
  12. {
  13. DECLARE_DYNCREATE(CKeyPasswordPage)
  14. // Construction
  15. public:
  16. CKeyPasswordPage(CCertificate * pCert = NULL);
  17. ~CKeyPasswordPage();
  18. enum
  19. {
  20. IDD_PAGE_PREV = IDD_PAGE_WIZ_GETKEY_FILE,
  21. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_KEYCERT
  22. #ifdef ENABLE_W3SVC_SSL_PAGE
  23. ,IDD_PAGE_NEXT_INSTALL_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  24. #endif
  25. };
  26. // Dialog Data
  27. //{{AFX_DATA(CKeyPasswordPage)
  28. enum { IDD = IDD_PAGE_WIZ_GET_PASSWORD };
  29. CStrPassword m_Password;
  30. //}}AFX_DATA
  31. CCertificate * m_pCert;
  32. // Overrides
  33. // ClassWizard generate virtual function overrides
  34. //{{AFX_VIRTUAL(CKeyPasswordPage)
  35. protected:
  36. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  37. public:
  38. virtual LRESULT OnWizardNext();
  39. virtual LRESULT OnWizardBack();
  40. virtual BOOL OnSetActive();
  41. virtual BOOL OnKillActive();
  42. //}}AFX_VIRTUAL
  43. // Implementation
  44. protected:
  45. // Generated message map functions
  46. //{{AFX_MSG(CKeyPasswordPage)
  47. afx_msg void OnEditchangePassword();
  48. //}}AFX_MSG
  49. DECLARE_MESSAGE_MAP()
  50. };
  51. class CImportPFXPasswordPage : public CIISWizardPage
  52. {
  53. DECLARE_DYNCREATE(CImportPFXPasswordPage)
  54. // Construction
  55. public:
  56. CImportPFXPasswordPage(CCertificate * pCert = NULL);
  57. ~CImportPFXPasswordPage();
  58. enum
  59. {
  60. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_IMPORT_PFX_FILE,
  61. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_IMPORT_PFX
  62. #ifdef ENABLE_W3SVC_SSL_PAGE
  63. ,IDD_PAGE_NEXT_INSTALL_W3SVC_ONLY = IDD_PAGE_WIZ_GET_SSL_PORT
  64. #endif
  65. };
  66. // Dialog Data
  67. //{{AFX_DATA(CImportPFXPasswordPage)
  68. enum { IDD = IDD_PAGE_WIZ_GET_IMPORT_PFX_PASSWORD };
  69. CStrPassword m_Password;
  70. //}}AFX_DATA
  71. CCertificate * m_pCert;
  72. // Overrides
  73. // ClassWizard generate virtual function overrides
  74. //{{AFX_VIRTUAL(CImportPFXPasswordPage)
  75. protected:
  76. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  77. public:
  78. virtual LRESULT OnWizardNext();
  79. virtual LRESULT OnWizardBack();
  80. virtual BOOL OnSetActive();
  81. virtual BOOL OnKillActive();
  82. //}}AFX_VIRTUAL
  83. // Implementation
  84. protected:
  85. // Generated message map functions
  86. //{{AFX_MSG(CImportPFXPasswordPage)
  87. afx_msg void OnEditchangePassword();
  88. //}}AFX_MSG
  89. DECLARE_MESSAGE_MAP()
  90. };
  91. class CExportPFXPasswordPage : public CIISWizardPage
  92. {
  93. DECLARE_DYNCREATE(CExportPFXPasswordPage)
  94. // Construction
  95. public:
  96. CExportPFXPasswordPage(CCertificate * pCert = NULL);
  97. ~CExportPFXPasswordPage();
  98. enum
  99. {
  100. IDD_PAGE_PREV = IDD_PAGE_WIZ_GET_EXPORT_PFX_FILE,
  101. IDD_PAGE_NEXT = IDD_PAGE_WIZ_INSTALL_EXPORT_PFX
  102. };
  103. // Dialog Data
  104. //{{AFX_DATA(CExportPFXPasswordPage)
  105. enum { IDD = IDD_PAGE_WIZ_GET_EXPORT_PFX_PASSWORD };
  106. CStrPassword m_Password;
  107. CStrPassword m_Password2;
  108. BOOL m_Export_Private_key;
  109. //}}AFX_DATA
  110. CCertificate * m_pCert;
  111. // Overrides
  112. // ClassWizard generate virtual function overrides
  113. //{{AFX_VIRTUAL(CExportPFXPasswordPage)
  114. protected:
  115. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  116. public:
  117. virtual LRESULT OnWizardNext();
  118. virtual LRESULT OnWizardBack();
  119. virtual BOOL OnSetActive();
  120. virtual BOOL OnKillActive();
  121. //}}AFX_VIRTUAL
  122. // Implementation
  123. protected:
  124. // Generated message map functions
  125. //{{AFX_MSG(CExportPFXPasswordPage)
  126. afx_msg void OnEditchangePassword();
  127. //}}AFX_MSG
  128. DECLARE_MESSAGE_MAP()
  129. };
  130. //{{AFX_INSERT_LOCATION}}
  131. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  132. #endif // !defined(AFX_KEYPASSWORDPAGE_H__7209C46A_15CB_11D2_91BB_00C04F8C8761__INCLUDED_)