IMFSecureChannel::GetCertificate method (mfidl.h)
Retrieves the client's certificate.
Syntax
HRESULT GetCertificate(
[out] BYTE **ppCert,
[out] DWORD *pcbCert
);
Parameters
[out] ppCert
Receives a pointer to a buffer allocated by the object. The buffer contains the client's certificate. The caller must release the buffer by calling CoTaskMemFree.
[out] pcbCert
Receives the size of the ppCert buffer, in bytes.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
---|---|
|
The method succeeded. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | mfidl.h |
Library | Mfuuid.lib |