Skip to content

Commit 9743f2b

Browse files
author
Zeke Snider
committed
Don't enable certificate revocation check if client config has validate certificates set to false
1 parent 1e4717e commit 9743f2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Release/src/http/client/http_client_winhttp.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -639,7 +639,7 @@ class winhttp_client : public _http_client_communicator
639639
}
640640

641641
// Enable the certificate revocation check
642-
if (m_secure)
642+
if (m_secure && client_config().validate_certificates())
643643
{
644644
DWORD dwEnableSSLRevocOpt = WINHTTP_ENABLE_SSL_REVOCATION;
645645
if (!WinHttpSetOption(winhttp_context->m_request_handle, WINHTTP_OPTION_ENABLE_FEATURE, &dwEnableSSLRevocOpt, sizeof(dwEnableSSLRevocOpt)))

0 commit comments

Comments
 (0)