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

Move OCSP ASN1 type functions to public header #2239

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

skmcgrail
Copy link
Member

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.

@skmcgrail skmcgrail requested a review from a team as a code owner March 4, 2025 19:47
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 79.04%. Comparing base (1d8b807) to head (b745759).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2239      +/-   ##
==========================================
- Coverage   79.06%   79.04%   -0.02%     
==========================================
  Files         612      612              
  Lines      106513   106513              
  Branches    15052    15054       +2     
==========================================
- Hits        84216    84196      -20     
- Misses      21645    21663      +18     
- Partials      652      654       +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.

@skmcgrail skmcgrail merged commit b74d80d into aws:main Mar 6, 2025
109 of 114 checks passed
@skmcgrail skmcgrail mentioned this pull request Mar 6, 2025
skmcgrail added a commit that referenced this pull request Mar 6, 2025
## What's Changed
* Move OCSP ASN1 type functions to public header by @skmcgrail in
#2239
* Make BIO_get_mem_data a function again by @skmcgrail in
#2246

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.
skmcgrail added a commit to skmcgrail/aws-lc that referenced this pull request Mar 6, 2025
### 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)
skmcgrail added a commit to skmcgrail/aws-lc that referenced this pull request Mar 10, 2025
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)

Make BIO_get_mem_data a function again (aws#2246)

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)
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