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

Cherry-pick to fips-2024-09-27 #2254

Open
wants to merge 2 commits into
base: fips-2024-09-27
Choose a base branch
from

Conversation

skmcgrail
Copy link
Member

Description of changes:

This code does not modify the FIPS boundary.

Cherry-picks:

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.

### Description of changes:
Improve compatibility with OpenSSL APIs for OCSP.

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.

(cherry picked from commit b74d80d)
### Description of changes:
Can't track it down the historical reason why, but we have
`BIO_get_mem_data` defined as a preprocessor macro, but BoringSSL does
not. This creates an annoying compatibility issue for rust-openssl, and
has forced us to implement the function properly in our aws-lc-sys
crates in Rust. This redefines the function to have a concrete
definition.

As a side-note, the macro was technically wrong as it was casting
contents to a `char *` when it was actually `char **`, but this wasn't
problematic per-se since it was being passed into a `void *` argument.
If you look at the ctrl function definition you can see that it is
indeed treated as a `char **` pointer.

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.

(cherry picked from commit 5826a07)
@skmcgrail skmcgrail requested a review from a team as a code owner March 6, 2025 22:32
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 78.59%. Comparing base (7d3a0cc) to head (a80505f).

Additional details and impacted files
@@                 Coverage Diff                 @@
##           fips-2024-09-27    #2254      +/-   ##
===================================================
- Coverage            78.60%   78.59%   -0.01%     
===================================================
  Files                  585      585              
  Lines               100525   100527       +2     
  Branches             14250    14251       +1     
===================================================
- Hits                 79014    79007       -7     
- Misses               20874    20885      +11     
+ Partials               637      635       -2     

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

🚀 New features to boost your workflow:
  • Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

3 participants