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
33 lines
821 B
#include "pch.hxx"
|
|
#ifndef WIN16
|
|
#include <commctrl.h>
|
|
#endif // !WIN16
|
|
#include "demand.h"
|
|
|
|
////////////////////////////////////////////////////////
|
|
|
|
CCertFrame::CCertFrame(PCCERT_CONTEXT pccert) {
|
|
m_pccert = CertDuplicateCertificateContext(pccert);
|
|
m_pcfNext = NULL;
|
|
m_cParents = 0;
|
|
m_dwFlags = 0;
|
|
m_cTrust = 0;
|
|
m_rgTrust = NULL;
|
|
m_fSelfSign = FALSE;
|
|
m_fRootStore = FALSE;
|
|
m_fLeaf = FALSE;
|
|
m_fExpired = FALSE;
|
|
}
|
|
|
|
CCertFrame::~CCertFrame(void)
|
|
{
|
|
int i;
|
|
CertFreeCertificateContext(m_pccert);
|
|
for (i=0; i<m_cParents; i++) {
|
|
delete m_rgpcfParents[i];
|
|
}
|
|
for (i=0; i<m_cTrust; i++) {
|
|
delete m_rgTrust[i].pbTrustData;
|
|
}
|
|
delete m_rgTrust;
|
|
}
|