-
Notifications
You must be signed in to change notification settings - Fork 121
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
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
#define ERR_LIB_CT 41 | ||
#define ERR_LIB_ASYNC 42 | ||
#define ERR_LIB_KDF 43 | ||
#define ERR_LIB_SM2 44 |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
They create a mapping to those err codes here:
https://github.com/nodejs/node/blob/1abff073921bcb0631602032aef0135bccfaee0d/src/crypto/crypto_util.cc#L501
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.