Commit d15265db authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

winhttp: Added schannel-based netconn_get_certificate implementation.

parent a3e15549
......@@ -1443,7 +1443,12 @@ const void *netconn_get_certificate( netconn_t *conn )
ret = X509_to_cert_context( cert );
return ret;
#else
return NULL;
const CERT_CONTEXT *ret;
SECURITY_STATUS res;
if (!conn->secure) return NULL;
res = QueryContextAttributesW(&conn->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