Commit 7d386bfc authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

wininet: Added NETCON_GetCert support for schannel-based connections.

parent 6c6e084a
......@@ -1458,8 +1458,14 @@ LPCVOID NETCON_GetCert(netconn_t *connection)
r = X509_to_cert_context(cert);
return r;
#else
FIXME("not supported on this platform\n");
return NULL;
const CERT_CONTEXT *ret;
SECURITY_STATUS res;
if (!connection->secure)
return NULL;
res = QueryContextAttributesW(&connection->ssl_ctx, SECPKG_ATTR_REMOTE_CERT_CONTEXT, (void*)&ret);
return res == SEC_E_OK ? ret : NULL;
#endif
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment