IMFSSLCertificateManager::GetClientCertificate method (mfidl.h)

Gets the client SSL certificate synchronously.

Syntax

HRESULT GetClientCertificate(
  [in]  LPCWSTR pszURL,
  [out] BYTE    **ppbData,
  [out] DWORD   *pcbData
);

Parameters

[in] pszURL

Pointer to a string that contains the URL for which a client-side SSL certificate is required. Media Foundation can resolve the scheme and send the request to the server.

[out] ppbData

Pointer to the buffer that stores the certificate. This caller must free the buffer by calling CoTaskMemFree.

[out] pcbData

Pointer to a DWORD variable that receives the number of bytes required to hold the certificate data in the buffer pointed by *ppbData.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfidl.h

See also

IMFSSLCertificateManager