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.

50 lines
1.4 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1997-2001.
  5. //
  6. // File: AutoCert.h
  7. //
  8. // Contents:
  9. //
  10. //----------------------------------------------------------------------------
  11. #if !defined(AFX_AUTOCERT_H__6C3D4D37_3527_11D1_B4AD_00C04FB94F17__INCLUDED_)
  12. #define AFX_AUTOCERT_H__6C3D4D37_3527_11D1_B4AD_00C04FB94F17__INCLUDED_
  13. #if _MSC_VER >= 1000
  14. #pragma once
  15. #endif // _MSC_VER >= 1000
  16. #include "ctl.h"
  17. #pragma warning(push, 3)
  18. #include <autoenr.h>
  19. #pragma warning(pop)
  20. class CAutoCertRequest : public CCTL
  21. {
  22. public:
  23. HCERTTYPE GetCertType();
  24. CStringList& GetCANameList (bool fDisplayName);
  25. HRESULT GetUsages (CString& usages);
  26. HRESULT GetCertTypeName (CString& certTypeName);
  27. CAutoCertRequest (const PCCTL_CONTEXT pCTLContext, CCertStore& rCertStore);
  28. virtual ~CAutoCertRequest();
  29. private:
  30. HCERTTYPE m_hCertType;
  31. bool m_bCANamesEnumerated;
  32. CString m_szUsages;
  33. PCERT_EXTENSION m_pEnhKeyUsageExtension;
  34. PCERT_EXTENSION m_pCertTypeExtension;
  35. CString m_szCertTypeName;
  36. CStringList m_CANameList;
  37. CStringList m_CADisplayNameList;
  38. protected:
  39. HRESULT BuildCANameList ();
  40. PCERT_EXTENSION GetEnhancedKeyUsageExtension();
  41. PCERT_EXTENSION GetCertTypeExtension ();
  42. };
  43. #endif // !defined(AFX_AUTOCERT_H__6C3D4D37_3527_11D1_B4AD_00C04FB94F17__INCLUDED_)