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.

33 lines
821 B

  1. #include "pch.hxx"
  2. #ifndef WIN16
  3. #include <commctrl.h>
  4. #endif // !WIN16
  5. #include "demand.h"
  6. ////////////////////////////////////////////////////////
  7. CCertFrame::CCertFrame(PCCERT_CONTEXT pccert) {
  8. m_pccert = CertDuplicateCertificateContext(pccert);
  9. m_pcfNext = NULL;
  10. m_cParents = 0;
  11. m_dwFlags = 0;
  12. m_cTrust = 0;
  13. m_rgTrust = NULL;
  14. m_fSelfSign = FALSE;
  15. m_fRootStore = FALSE;
  16. m_fLeaf = FALSE;
  17. m_fExpired = FALSE;
  18. }
  19. CCertFrame::~CCertFrame(void)
  20. {
  21. int i;
  22. CertFreeCertificateContext(m_pccert);
  23. for (i=0; i<m_cParents; i++) {
  24. delete m_rgpcfParents[i];
  25. }
  26. for (i=0; i<m_cTrust; i++) {
  27. delete m_rgTrust[i].pbTrustData;
  28. }
  29. delete m_rgTrust;
  30. }