Skip to content

Commit

Permalink
Ignore certificate revocation checks in case of missing or offline di…
Browse files Browse the repository at this point in the history
…stribution points on Windows
  • Loading branch information
treyn008 committed Jul 31, 2024
1 parent 57e263d commit 153991f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cpr/session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,11 @@ void Session::prepareCommonShared() {
curl_easy_setopt(curl_->handle, CURLOPT_SSL_OPTIONS, CURLSSLOPT_NATIVE_CA);
#endif

#if LIBCURL_VERSION_NUM >= 0x074600 // 7.70.0
// Ignore certificate revocation checks in case of missing or offline distribution points, on Windows:
curl_easy_setopt(curl_->handle, CURLOPT_SSL_OPTIONS, CURLSSLOPT_REVOKE_BEST_EFFORT);
#endif

// Ensure SSL no revoke is still set
#if SUPPORT_SSL_NO_REVOKE
if (noRevoke) {
Expand Down

0 comments on commit 153991f

Please sign in to comment.