Skip to content

[Feature] Set CURLSSLOPT_REVOKE_BEST_EFFORT#3831

Open
kai-ion wants to merge 6 commits into
mainfrom
revocation
Open

[Feature] Set CURLSSLOPT_REVOKE_BEST_EFFORT#3831
kai-ion wants to merge 6 commits into
mainfrom
revocation

Conversation

@kai-ion
Copy link
Copy Markdown
Collaborator

@kai-ion kai-ion commented May 20, 2026

Set CURLSSLOPT_REVOKE_BEST_EFFORT

Issue #, if available:
#3830

Description of changes:
Add CURLSSLOPT_REVOKE_BEST_EFFORT in CurlHttpClient.cpp

Check all that applies:

  • Did a review by yourself.
  • Added proper tests to cover this PR. (If tests are not applicable, explain.)
  • Checked if this PR is a breaking (APIs have been changed) change.
  • Checked if this PR will not introduce cross-platform inconsistent behavior.
  • Checked if this PR would require a ReadMe/Wiki update.

Check which platforms you have built SDK on to verify the correctness of this PR.

  • Linux
  • Windows
  • Android
  • MacOS
  • IOS
  • Other Platforms

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

kai-ion and others added 4 commits May 19, 2026 14:35
 Set CURLSSLOPT_REVOKE_BEST_EFFORT
 Set CURLSSLOPT_REVOKE_BEST_EFFORT
 Set CURLSSLOPT_REVOKE_BEST_EFFORT
bool verifySSL = true;
/**
* If set to true, the SDK will not fail SSL connections when Certificate Revocation
* List (CRL) servers are unreachable. Only applies on Windows when using the curl
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only applies on Windows when using the curl HTTP client with Schannel

this is flat out untrue, this configuration is only for setting CURLSSLOPT_REVOKE_BEST_EFFORT update the documentation to reflect this.

additionally we have configuration for specifically windows http we should likely have one for curl if one doesnt already exist and this should be a configuration in there.

* List (CRL) servers are unreachable. Only applies on Windows when using the curl
* HTTP client with Schannel. Off by default to maintain strict revocation checking.
*/
bool allowCrlOffline = false;
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why is this called allowCrlOffline, it has to do with CURLSSLOPT_REVOKE_BEST_EFFORT, this should be named to reflect

curl_easy_setopt(connectionHandle, CURLOPT_SSL_OPTIONS, CURLSSLOPT_REVOKE_BEST_EFFORT);
}
#else
AWS_UNREFERENCED_PARAM(m_allowCrlOffline);
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is a member variable, not a parameter why are we using AWS_UNREFERENCED_PARAM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants