176 lines
3.5 KiB
C
176 lines
3.5 KiB
C
|
/*++
|
||
|
|
||
|
Copyright (c) 1994-1998 Microsoft Corporation
|
||
|
|
||
|
Module Name :
|
||
|
|
||
|
authent.cpp
|
||
|
|
||
|
Abstract:
|
||
|
|
||
|
WWW Authentication Dialog Definitions
|
||
|
|
||
|
Author:
|
||
|
|
||
|
Ronald Meijer (ronaldm)
|
||
|
|
||
|
Project:
|
||
|
|
||
|
Internet Services Manager
|
||
|
|
||
|
Revision History:
|
||
|
|
||
|
--*/
|
||
|
|
||
|
|
||
|
|
||
|
#ifndef __SECCOM_H__
|
||
|
#define __SECCOM_H__
|
||
|
|
||
|
|
||
|
//{{AFX_INCLUDES()
|
||
|
#include "certmap.h"
|
||
|
#include "certauth.h"
|
||
|
#include "certwiz.h"
|
||
|
//}}AFX_INCLUDES
|
||
|
|
||
|
|
||
|
|
||
|
class CSecCommDlg : public CDialog
|
||
|
/*++
|
||
|
|
||
|
Class Description:
|
||
|
|
||
|
Authantication dialog
|
||
|
|
||
|
Public Interface:
|
||
|
|
||
|
CSecCommDlg : Constructor
|
||
|
|
||
|
--*/
|
||
|
{
|
||
|
//
|
||
|
// Construction
|
||
|
//
|
||
|
public:
|
||
|
CSecCommDlg(
|
||
|
IN LPCTSTR lpstrServerName, // For API name only
|
||
|
IN LPCTSTR lpstrMetaPath, // For use in ocx only
|
||
|
IN CString & strBasicDomain,
|
||
|
IN DWORD & dwAuthFlags,
|
||
|
IN DWORD & dwAccessPermissions,
|
||
|
IN BOOL fIsMasterInstance,
|
||
|
IN BOOL fSSLSupported,
|
||
|
IN BOOL fSSL128Supported,
|
||
|
IN BOOL fU2Installed,
|
||
|
IN CString & strCTLIdentifier,
|
||
|
IN CString & strCTLStoreName,
|
||
|
IN BOOL fEditCTLs,
|
||
|
IN BOOL fIsLocal,
|
||
|
IN CWnd * pParent = NULL OPTIONAL
|
||
|
);
|
||
|
|
||
|
~CSecCommDlg();
|
||
|
|
||
|
//
|
||
|
// Dialog Data
|
||
|
//
|
||
|
public:
|
||
|
CString m_strCTLIdentifier;
|
||
|
CString m_strCTLStoreName;
|
||
|
BOOL m_bCTLDirty;
|
||
|
|
||
|
protected:
|
||
|
//
|
||
|
// Radio button values
|
||
|
//
|
||
|
enum
|
||
|
{
|
||
|
RADIO_NO_CERT,
|
||
|
RADIO_ACCEPT_CERT,
|
||
|
RADIO_REQ_CERT,
|
||
|
};
|
||
|
|
||
|
//{{AFX_DATA(CSecCommDlg)
|
||
|
enum { IDD = IDD_SECURE_COMMUNICATIONS };
|
||
|
int m_nRadioNoCert;
|
||
|
BOOL m_fAccountMapping;
|
||
|
BOOL m_fRequireSSL;
|
||
|
BOOL m_fRequire128BitSSL;
|
||
|
BOOL m_fEnableCtl;
|
||
|
CString m_strCtl;
|
||
|
CStatic m_static_CTLPrompt;
|
||
|
CStatic m_static_CTLSeparator;
|
||
|
CButton m_check_AccountMapping;
|
||
|
CButton m_check_RequireSSL;
|
||
|
CButton m_check_Require128BitSSL;
|
||
|
CButton m_check_EnableDS;
|
||
|
CButton m_check_EnableCtl;
|
||
|
CButton m_button_EditCtl;
|
||
|
CButton m_button_NewCtl;
|
||
|
CCertmap m_ocx_ClientMappings;
|
||
|
CComboBox m_combo_ctl;
|
||
|
//}}AFX_DATA
|
||
|
|
||
|
CButton m_radio_RequireCert;
|
||
|
CButton m_radio_AcceptCert;
|
||
|
CCertWiz m_ocx_CertificateAuthorities;
|
||
|
|
||
|
//
|
||
|
// Overrides
|
||
|
//
|
||
|
protected:
|
||
|
//{{AFX_VIRTUAL(CSecCommDlg)
|
||
|
protected:
|
||
|
virtual void DoDataExchange(CDataExchange * pDX);
|
||
|
//}}AFX_VIRTUAL
|
||
|
|
||
|
//
|
||
|
// Implementation
|
||
|
//
|
||
|
protected:
|
||
|
//{{AFX_MSG(CSecCommDlg)
|
||
|
virtual BOOL OnInitDialog();
|
||
|
virtual void OnOK();
|
||
|
afx_msg void OnCheckSslAccountMapping();
|
||
|
afx_msg void OnCheckRequireSsl();
|
||
|
afx_msg void OnRadioAcceptCert();
|
||
|
afx_msg void OnRadioNoCert();
|
||
|
afx_msg void OnRadioRequireCert();
|
||
|
afx_msg void OnButtonEditCtl();
|
||
|
afx_msg void OnCheckEnableCtl();
|
||
|
afx_msg void OnButtonNewCtl();
|
||
|
afx_msg void OnSelchangeComboCtl();
|
||
|
afx_msg void OnDestroy();
|
||
|
//}}AFX_MSG
|
||
|
DECLARE_MESSAGE_MAP()
|
||
|
|
||
|
void SetControlStates();
|
||
|
|
||
|
private:
|
||
|
BOOL AddCTLToList(PCCTL_CONTEXT pCTL, BOOL fSelect);
|
||
|
PCCTL_CONTEXT CallCTLWizard(PCCTL_CONTEXT pCTLSrc);
|
||
|
|
||
|
void InitializeCTLList();
|
||
|
void CleanUpCTLList();
|
||
|
|
||
|
HCERTSTORE m_hCTLStore;
|
||
|
|
||
|
INT m_iLastUsedCert;
|
||
|
DWORD & m_dwAuthFlags;
|
||
|
DWORD & m_dwAccessPermissions;
|
||
|
DWORD m_dwInstance;
|
||
|
BOOL m_fEditCTLs;
|
||
|
BOOL m_fSSLEnabledOnServer;
|
||
|
BOOL m_fSSLInstalledOnServer;
|
||
|
BOOL m_fSSL128Supported;
|
||
|
BOOL m_fU2Installed;
|
||
|
BOOL m_fIsLocal;
|
||
|
BOOL m_fIsMasterInstance;
|
||
|
CString m_strServerName;
|
||
|
CString m_strMetaPath;
|
||
|
};
|
||
|
|
||
|
|
||
|
#endif // __SECCOM_H__
|