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

Error Codes for NodeJS compatibility added #1475

Merged
merged 4 commits into from
Mar 20, 2024
Merged

Conversation

smittals2
Copy link
Contributor

Description of changes:

Added in some error codes from OpenSSL

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.

@smittals2 smittals2 requested a review from a team as a code owner March 5, 2024 22:16
include/openssl/err.h Outdated Show resolved Hide resolved
@codecov-commenter
Copy link

codecov-commenter commented Mar 6, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 76.99%. Comparing base (3aa28fb) to head (a055992).
Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1475      +/-   ##
==========================================
- Coverage   77.00%   76.99%   -0.01%     
==========================================
  Files         425      425              
  Lines       71627    71627              
==========================================
- Hits        55154    55152       -2     
- Misses      16473    16475       +2     

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

include/openssl/dh.h Outdated Show resolved Hide resolved
@smittals2 smittals2 requested a review from a team March 9, 2024 00:59
include/openssl/dh.h Outdated Show resolved Hide resolved
#define ERR_LIB_CT 41
#define ERR_LIB_ASYNC 42
#define ERR_LIB_KDF 43
#define ERR_LIB_SM2 44
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmmmmmmm, does NodeJS not handle OPENSSL_NO_SM2 correctly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Not sure but they define mappings to these specific ERR_LIB_* codes, so we need to define them as well.

Copy link
Contributor

Choose a reason for hiding this comment

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

Where do you see that? A naive search only finds the OpenSSL dependency code and no real usage https://github.com/search?q=repo%3Anodejs%2Fnode%20ERR_LIB_SM2&type=code

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@smittals2 smittals2 merged commit 13337f7 into aws:main Mar 20, 2024
44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants