Skip to content

Add SSL_CTX_use_cert_and_key #2163

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

Merged
merged 18 commits into from
Feb 25, 2025
Merged

Add SSL_CTX_use_cert_and_key #2163

merged 18 commits into from
Feb 25, 2025

Conversation

smittals2
Copy link
Contributor

Issues:

CryptoAlg-2863

Description of changes:

Adds the function SSL_CTX_use_cert_and_key which sets the leaf, chain, and private key all in one operation. This function is also needed by librdkafka.

Call-outs:

Point out areas that need special attention or support during the review process. Discuss architecture or design changes.

Testing:

Tests using this API to set the relevant fields and ensure TLS connection succeeds.

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.

@codecov-commenter
Copy link

codecov-commenter commented Feb 4, 2025

Codecov Report

Attention: Patch coverage is 76.66667% with 21 lines in your changes missing coverage. Please review.

Project coverage is 79.07%. Comparing base (becf578) to head (8b68c56).
Report is 6 commits behind head on main.

Files with missing lines Patch % Lines
ssl/ssl_cert.cc 70.42% 21 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2163      +/-   ##
==========================================
+ Coverage   79.05%   79.07%   +0.01%     
==========================================
  Files         612      612              
  Lines      106218   106403     +185     
  Branches    15006    15035      +29     
==========================================
+ Hits        83970    84137     +167     
- Misses      21595    21615      +20     
+ Partials      653      651       -2     

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

@smittals2 smittals2 marked this pull request as ready for review February 13, 2025 00:48
@smittals2 smittals2 requested a review from a team as a code owner February 13, 2025 00:48
justsmth
justsmth previously approved these changes Feb 20, 2025
justsmth
justsmth previously approved these changes Feb 24, 2025
justsmth
justsmth previously approved these changes Feb 24, 2025
@smittals2 smittals2 merged commit 1971b41 into aws:main Feb 25, 2025
110 of 113 checks passed
smittals2 added a commit to smittals2/aws-lc that referenced this pull request Mar 26, 2025
`CryptoAlg-2863`

Adds the function SSL_CTX_use_cert_and_key which sets the leaf, chain,
and private key all in one operation. This function is also needed by
librdkafka.

Regenerated error data

Point out areas that need special attention or support during the review
process. Discuss architecture or design changes.

Tests using this API to set the relevant fields and ensure TLS
connection succeeds.

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.

---------

Co-authored-by: Justin W Smith <[email protected]>
Co-authored-by: Justin Smith <[email protected]>
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