Commit eae8f4ed authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

crypt32: Use empty_store for new CTL contexts.

parent c01a7084
......@@ -453,7 +453,7 @@ PCCTL_CONTEXT WINAPI CertCreateCTLContext(DWORD dwMsgAndCertEncodingType,
ctl->pbCtlEncoded = data;
ctl->cbCtlEncoded = cbCtlEncoded;
ctl->pCtlInfo = ctlInfo;
ctl->hCertStore = NULL;
ctl->hCertStore = &empty_store;
ctl->hCryptMsg = msg;
ctl->pbCtlContext = content;
ctl->cbCtlContext = contentSize;
......
......@@ -2531,6 +2531,7 @@ static void testEmptyStore(void)
{
const CERT_CONTEXT *cert, *cert2, *cert3;
const CRL_CONTEXT *crl;
const CTL_CONTEXT *ctl;
HCERTSTORE store;
BOOL res;
......@@ -2594,6 +2595,12 @@ static void testEmptyStore(void)
CertFreeCRLContext(crl);
ctl = CertCreateCTLContext(X509_ASN_ENCODING, signedCTLWithCTLInnerContent, sizeof(signedCTLWithCTLInnerContent));
ok(ctl != NULL, "CertCreateCTLContext failed\n");
ok(ctl->hCertStore == cert->hCertStore, "unexpected hCertStore\n");
CertFreeCTLContext(ctl);
CertFreeCertificateContext(cert);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment