IEnroll4::getCertContextFromResponseBlob method (xenroll.h)

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

The getCertContextFromResponseBlob method retrieves the certificate from a certification authority's response.This method was first defined by the IEnroll4 interface.

Syntax

HRESULT getCertContextFromResponseBlob(
  [in]  PCRYPT_DATA_BLOB pblobResponse,
  [out] PCCERT_CONTEXT   *ppCertContext
);

Parameters

[in] pblobResponse

A pointer to a CRYPT_DATA_BLOB structure that represents the response.

[out] ppCertContext

A pointer to a pointer to a CERT_CONTEXT structure that receives the certificate retrieved from the response.

Return value

None

Remarks

The response contained in pblobResponse must contain exactly one certificate; a child certificate cannot be present.

The response may be either a PKCS #7 or a full Certificate Management over CMS (CMC) response. However, to accept a full CMC response, the cryptographic service provider must support Abstract Syntax Notation One (ASN.1) encoding of CMC structures.

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

IEnroll4