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.

64 lines
2.2 KiB

  1. // CertificateExtensions.h -- Certificate Extensions class
  2. // (c) Copyright Schlumberger Technology Corp., unpublished work, created
  3. // 2001. This computer program includes Confidential, Proprietary
  4. // Information and is a Trade Secret of Schlumberger Technology Corp. All
  5. // use, disclosure, and/or reproduction is prohibited unless authorized
  6. // in writing. All Rights Reserved.
  7. #if !defined(SLBCSP_CERTIFICATEEXTENSIONS_H)
  8. #define SLBCSP_CERTIFICATEEXTENSIONS_H
  9. #include <WinCrypt.h>
  10. #include "Blob.h"
  11. class CertificateExtensions
  12. {
  13. public:
  14. // Types
  15. // C'tors/D'tors
  16. explicit
  17. CertificateExtensions(Blob const &rblbCertificate);
  18. ~CertificateExtensions();
  19. // Operators
  20. // Operations
  21. // Access
  22. // Predicates
  23. bool
  24. HasEKU(char *szOID);
  25. protected:
  26. // Types
  27. // C'tors/D'tors
  28. // Operators
  29. // Operations
  30. // Access
  31. // Predicates
  32. // Variables
  33. private:
  34. // Types
  35. // C'tors/D'tors
  36. // not defined.
  37. explicit
  38. CertificateExtensions(CertificateExtensions const &rhs);
  39. // Operators
  40. // not defined
  41. CertificateExtensions &
  42. operator=(CertificateExtensions const &rhs);
  43. // Operations
  44. // Access
  45. // Predicates
  46. // Variables
  47. PCCERT_CONTEXT m_pCertCtx;
  48. };
  49. #endif // SLBCSP_CERTIFICATEEXTENSIONS_H