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.

158 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. #ifndef __WSECURITY_H__
  14. #define __WSECURITY_H__
  15. //{{AFX_INCLUDES()
  16. #include "certauth.h"
  17. #include "certmap.h"
  18. #include "certwiz.h"
  19. //}}AFX_INCLUDES
  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. CString m_strRealm;
  59. //
  60. // Overrides
  61. //
  62. protected:
  63. virtual HRESULT FetchLoadedValues();
  64. virtual HRESULT SaveInfo();
  65. //{{AFX_VIRTUAL(CW3SecurityPage)
  66. public:
  67. virtual BOOL OnSetActive();
  68. protected:
  69. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  70. //}}AFX_VIRTUAL
  71. //
  72. // Implementation
  73. //
  74. protected:
  75. //{{AFX_MSG(CW3SecurityPage)
  76. afx_msg void OnButtonAuthentication();
  77. afx_msg void OnButtonCommunications();
  78. afx_msg void OnButtonIpSecurity();
  79. afx_msg void OnButtonGetCertificates();
  80. afx_msg void OnButtonViewCertificates();
  81. virtual BOOL OnInitDialog();
  82. //}}AFX_MSG
  83. afx_msg void OnItemChanged();
  84. DECLARE_MESSAGE_MAP()
  85. BOOL FetchSSLState();
  86. void SetSSLControlState();
  87. LPCTSTR QueryInstanceMetaPath();
  88. //
  89. // Sheet Access
  90. //
  91. protected:
  92. CBlob & GetIPL() { return ((CW3Sheet *)GetSheet())->GetDirectoryProperties().m_ipl; }
  93. private:
  94. BOOL m_fIpDirty;
  95. BOOL m_fDefaultGranted;
  96. BOOL m_fOldDefaultGranted;
  97. BOOL m_fPasswordSync;
  98. BOOL m_fPasswordSyncInitial;
  99. BOOL m_fCertInstalled;
  100. BOOL m_fU2Installed;
  101. BOOL m_fHome;
  102. CString m_strAnonUserName;
  103. CString m_strAnonPassword;
  104. CObListPlus m_oblAccessList;
  105. //
  106. // Certificate and CTL information
  107. //
  108. CBlob m_CertHash;
  109. CString m_strCertStoreName;
  110. CString m_strCTLIdentifier;
  111. CString m_strCTLStoreName;
  112. };
  113. //
  114. // Inline Expansion
  115. //
  116. // <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
  117. inline LPCTSTR CW3SecurityPage::QueryInstanceMetaPath()
  118. {
  119. return ((CW3Sheet *)GetSheet())->GetInstanceProperties().QueryMetaRoot();
  120. }
  121. #endif // __SECURITY_H__