Skip to content

Add pkey to CLI tool #2519

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Add pkey to CLI tool #2519

wants to merge 3 commits into from

Conversation

smittals2
Copy link
Contributor

Issues:

Resolves #ISSUE-NUMBER1
Addresses #ISSUE-NUMBER2

Description of changes:

Describe AWS-LC’s current behavior and how your code changes that behavior. If there are no issues this pr is resolving, explain why this change is necessary.

Call-outs:

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

Testing:

How is this change tested (unit tests, fuzz tests, etc.)? Are there any testing steps to be verified by the reviewer?

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.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

clang-tidy made some suggestions

// Helper function to create a test key
static EVP_PKEY* CreateTestKey() {
bssl::UniquePtr<EVP_PKEY> pkey(EVP_PKEY_new());
if (!pkey) return nullptr;
Copy link
Contributor

Choose a reason for hiding this comment

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

warning: statement should be inside braces [readability-braces-around-statements]

Suggested change
if (!pkey) return nullptr;
if (!pkey) { return nullptr;
}

@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 55.89354% with 116 lines in your changes missing coverage. Please review.

Project coverage is 78.83%. Comparing base (14e3dc8) to head (bfdc3d8).
Report is 14 commits behind head on main.

Files with missing lines Patch % Lines
tool-openssl/pkey_test.cc 48.63% 74 Missing and 1 partial ⚠️
tool-openssl/pkey.cc 64.95% 41 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2519      +/-   ##
==========================================
- Coverage   78.94%   78.83%   -0.12%     
==========================================
  Files         636      642       +6     
  Lines      109381   110020     +639     
  Branches    15475    15558      +83     
==========================================
+ Hits        86349    86731     +382     
- Misses      22344    22591     +247     
- Partials      688      698      +10     

☔ 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.

2 participants