IEnroll::getCertContextFromPKCS7 method (xenroll.h)

[This method is no longer available for use as of Windows Server 2008 and Windows Vista.]

The getCertContextFromPKCS7 method retrieves a certificate context based on a PKCS #7 message that was issued in response to a PKCS #10 certificate request.

This method retrieves the context for the single certificate that was issued even though a PKCS #7 message may contain many certificates specifying the certification chain of authority that issued the certificate.

This method was first defined in the IEnroll interface.

Syntax

PCCERT_CONTEXT getCertContextFromPKCS7(
  [in] PCRYPT_DATA_BLOB pBlobPKCS7
);

Parameters

[in] pBlobPKCS7

A pointer to a CRYPT_DATA_BLOB structure that represents the PKCS #7.

Return value

The return value is a pointer to a CERT_CONTEXT representing the certificate context, or NULL if the method fails.

Requirements

Requirement Value
Minimum supported client Windows XP [desktop apps only]
Minimum supported server Windows Server 2003 [desktop apps only]
Target Platform Windows
Header xenroll.h
Library Uuid.lib
DLL Xenroll.dll

See also

IEnroll

IEnroll2