Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the client certificate.
Syntax
HRESULT GetClientCertificate(
[in, out] PCCERT_CONTEXT *ppCertContext
);
Parameters
[in, out] ppCertContext
A pointer to a CERT_CONTEXT structure that contains the client SSL certificate. Upon completion, the caller should free this memory by calling CertFreeCertificateContext.
Return value
Possible return values include, but are not limited to, the following.
| Return code | Description |
|---|---|
|
Method succeeded. |
|
A certificate is not available. |
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 | wsdbase.h (include Wsdapi.h) |
| DLL | Wsdapi.dll |