CertCreateCRLContext function (wincrypt.h)
The CertCreateCRLContext function creates a certificate revocation list (CRL) context from an encoded CRL. The created context is not persisted to a certificate store. It makes a copy of the encoded CRL within the created context.
PCCRL_CONTEXT CertCreateCRLContext( [in] DWORD dwCertEncodingType, [in] const BYTE *pbCrlEncoded, [in] DWORD cbCrlEncoded );
Specifies the type of encoding used. It is always acceptable to specify both the certificate and message encoding types by combining them with a bitwise-OR operation as shown in the following example:
X509_ASN_ENCODING | PKCS_7_ASN_ENCODING Currently defined encoding types are:
A pointer to a buffer containing the encoded CRL from which the context is to be created.
The size, in bytes, of the pbCrlEncoded buffer.
If the function succeeds, the return value is a pointer to a read-only CRL_CONTEXT.
||Invalid certificate encoding type. Currently, only the encoding type X509_ASN_ENCODING is supported.|
The CRL_CONTEXT must be freed by calling CertFreeCRLContext. CertDuplicateCRLContext can be called to make a duplicate. CertSetCRLContextProperty and CertGetCRLContextProperty can be called to store and read properties for the CRL.
|Minimum supported client||Windows XP [desktop apps | UWP apps]|
|Minimum supported server||Windows Server 2003 [desktop apps | UWP apps]|