Source code of Windows XP (NT5)
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.

163 lines
3.1 KiB

  1. /*++
  2. Copyright (c) 1994-1998 Microsoft Corporation
  3. Module Name :
  4. security.h
  5. Abstract:
  6. WWW Security Property Page Definitions
  7. Author:
  8. Ronald Meijer (ronaldm)
  9. Project:
  10. Internet Services Manager
  11. Revision History:
  12. --*/
  13. //{{AFX_INCLUDES()
  14. #include "certauth.h"
  15. #include "certmap.h"
  16. #include "certwiz.h"
  17. //}}AFX_INCLUDES
  18. #ifndef __SECURITY_H__
  19. #define __SECURITY_H__
  20. class CW3SecurityPage : public CInetPropertyPage
  21. /*++
  22. Class Description:
  23. WWW Security property page
  24. Public Interface:
  25. CW3SecurityPage : Constructor
  26. ~CW3SecurityPage : Destructor
  27. --*/
  28. {
  29. DECLARE_DYNCREATE(CW3SecurityPage)
  30. //
  31. // Construction
  32. //
  33. public:
  34. CW3SecurityPage(
  35. IN CInetPropertySheet * pSheet = NULL,
  36. IN BOOL fHome = FALSE,
  37. IN DWORD dwAttributes = 0L
  38. );
  39. ~CW3SecurityPage();
  40. //
  41. // Dialog Data
  42. //
  43. protected:
  44. //{{AFX_DATA(CW3SecurityPage)
  45. enum { IDD = IDD_DIRECTORY_SECURITY };
  46. BOOL m_fUseNTMapper;
  47. CStatic m_icon_Secure;
  48. CStatic m_static_SSLPrompt;
  49. CButton m_check_EnableDS;
  50. CButton m_button_GetCertificates;
  51. CButton m_button_ViewCertificates;
  52. CButton m_button_Communications;
  53. //}}AFX_DATA
  54. CCertWiz m_ocx_CertificateAuthorities;
  55. DWORD m_dwAuthFlags;
  56. DWORD m_dwSSLAccessPermissions;
  57. CString m_strBasicDomain;
  58. //
  59. // Overrides
  60. //
  61. protected:
  62. virtual HRESULT FetchLoadedValues();
  63. virtual HRESULT SaveInfo();
  64. //{{AFX_VIRTUAL(CW3SecurityPage)
  65. public:
  66. virtual BOOL OnSetActive();
  67. protected:
  68. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  69. //}}AFX_VIRTUAL
  70. //
  71. // Implementation
  72. //
  73. protected:
  74. //{{AFX_MSG(CW3SecurityPage)
  75. afx_msg void OnButtonAuthentication();
  76. afx_msg void OnButtonCommunications();
  77. afx_msg void OnButtonIpSecurity();
  78. afx_msg void OnButtonGetCertificates();
  79. afx_msg void OnButtonViewCertificates();
  80. virtual BOOL OnInitDialog();
  81. //}}AFX_MSG
  82. afx_msg void OnItemChanged();
  83. DECLARE_MESSAGE_MAP()
  84. BOOL FetchSSLState();
  85. void SetSSLControlState();
  86. LPCTSTR QueryInstanceMetaPath();
  87. //
  88. // Sheet Access
  89. //
  90. protected:
  91. CBlob & GetIPL() { return ((CW3Sheet *)GetSheet())->GetDirectoryProperties().m_ipl; }
  92. private:
  93. BOOL m_fIpDirty;
  94. BOOL m_fDefaultGranted;
  95. BOOL m_fOldDefaultGranted;
  96. BOOL m_fPasswordSync;
  97. BOOL m_fCertInstalled;
  98. BOOL m_fU2Installed;
  99. BOOL m_fHome;
  100. CString m_strAnonUserName;
  101. CString m_strAnonPassword;
  102. CObListPlus m_oblAccessList;
  103. //
  104. // Certificate and CTL information
  105. //
  106. CBlob m_CertHash;
  107. CString m_strCertStoreName;
  108. CString m_strCTLIdentifier;
  109. CString m_strCTLStoreName;
  110. };
  111. //
  112. // Inline Expansion
  113. //
  114. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  115. inline LPCTSTR CW3SecurityPage::QueryInstanceMetaPath()
  116. {
  117. return ((CW3Sheet *)GetSheet())->GetInstanceProperties().QueryMetaRoot();
  118. }
  119. #endif // __SECURITY_H__