Export (0) Print
Expand All
Expand Minimize

IEnroll4::CreatePKCS7RequestFromRequest method

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

The CreatePKCS7RequestFromRequest method creates a PKCS #7 request from an existing certificate request. This method was first defined in the IEnroll interface.

Syntax


HRESULT CreatePKCS7RequestFromRequest(
  [in]  PCRYPT_DATA_BLOB pRequest,
  [in]  PCCERT_CONTEXT   pSigningCertContext,
  [out] PCRYPT_DATA_BLOB pPkcs7Blob
);

Parameters

pRequest [in]

A pointer to a CRYPT_DATA_BLOB structure that represents the existing request.

pSigningCertContext [in]

A pointer to a CERT_CONTEXT structure that represents the certificate used to sign the request.

pPkcs7Blob [out]

A pointer to a CRYPT_DATA_BLOB structure that receives the returned PKCS #7 certificate request.

When you have finished using this memory, free it by passing the pbData member of this structure to the CoTaskMemFree function.

Return value

If the method succeeds, the method returns S_OK.

If the method fails, it returns an HRESULT value that indicates the error. For a list of common error codes, see Common HRESULT Values.

Requirements

Minimum supported client

Windows XP [desktop apps only]

Minimum supported server

Windows Server 2003 [desktop apps only]

End of client support

Windows XP

End of server support

Windows Server 2003

Header

Xenroll.h

Library

Uuid.lib

DLL

Xenroll.dll

IID

IID_IEnroll4 is defined as f8053fe5-78f4-448f-a0db-41d61b73446b

See also

IEnroll4

 

 

Community Additions

ADD
Show:
© 2015 Microsoft