Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR behavior #1620

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

samuel40791765
Copy link
Contributor

Description of changes:

This was discovered when taking google/boringssl@5b3dc49 during the upstream merge.
ERR_clear_error is being called more eagerly with the new change, which led us to discover that SSLTest.BuildCertChain was actually testing against an error code propagated onto the stack by the previous call to SSL_CTX_build_cert_chain.

Upon further examination, we weren't propagating an error when calling SSL_CTX_build_cert_chain with SSL_BUILD_CHAIN_FLAG_IGNORE_ERROR . The correct behavior should be to push an error onto the stack regardless.

Call-outs:

N/A

Testing:

Slight test tweaks

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license and the ISC license.

@samuel40791765 samuel40791765 requested a review from a team as a code owner June 4, 2024 00:18
@codecov-commenter
Copy link

codecov-commenter commented Jun 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.08%. Comparing base (8258d73) to head (77da30f).
Report is 19 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1620      +/-   ##
==========================================
+ Coverage   78.05%   78.08%   +0.02%     
==========================================
  Files         562      562              
  Lines       94600    94656      +56     
  Branches    13575    13574       -1     
==========================================
+ Hits        73840    73908      +68     
+ Misses      20168    20153      -15     
- Partials      592      595       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@samuel40791765 samuel40791765 merged commit 2431353 into aws:main Jun 4, 2024
90 of 93 checks passed
@samuel40791765 samuel40791765 deleted the fix-ssl-error branch June 4, 2024 22:23
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.

4 participants