mirror of
https://github.com/reactos/wine.git
synced 2024-11-26 05:00:30 +00:00
wininet: Added NETCON_GetCert support for schannel-based connections.
This commit is contained in:
parent
6c6e084a7d
commit
7d386bfcd8
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user