Skip to content

Commit ba1fdef

Browse files
author
Patrik Fiedler
committed
delete unused code
1 parent 3f47656 commit ba1fdef

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

Release/src/http/client/http_client_winhttp.cpp

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -437,17 +437,6 @@ class winhttp_client : public _http_client_communicator
437437
}
438438
}
439439

440-
#if 0 // Work in progress. Enable this to support server certificate revocation check
441-
if( m_secure )
442-
{
443-
DWORD dwEnableSSLRevocOpt = WINHTTP_ENABLE_SSL_REVOCATION;
444-
if(!WinHttpSetOption(m_hSession, WINHTTP_OPTION_ENABLE_FEATURE, &dwEnableSSLRevocOpt, sizeof(dwEnableSSLRevocOpt)))
445-
{
446-
DWORD dwError = GetLastError(); dwError;
447-
return report_failure(U("Error enabling SSL revocation check"));
448-
}
449-
}
450-
#endif
451440
//Enable TLS 1.1 and 1.2
452441
#if !defined(CPPREST_TARGET_XP)
453442
BOOL win32_result(FALSE);
@@ -542,6 +531,7 @@ class winhttp_client : public _http_client_communicator
542531
return;
543532
}
544533

534+
// Enable the certificate revocation check
545535
if (m_secure)
546536
{
547537
DWORD dwEnableSSLRevocOpt = WINHTTP_ENABLE_SSL_REVOCATION;

0 commit comments

Comments
 (0)