-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
crypto: deduplicate public key parsing #22553
Conversation
cc @nodejs/crypto |
src/node_crypto.cc
Outdated
@@ -3648,6 +3648,45 @@ void Sign::SignFinal(const FunctionCallbackInfo<Value>& args) { | |||
args.GetReturnValue().Set(rc); | |||
} | |||
|
|||
typedef enum { |
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.
No need to typedef
, enum ParsePublicKeyResult
works too :)
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.
Thanks, Anna :)
The last two CI builds passed according to Jenkins, but GH is still displaying pending / failed. cc @nodejs/build |
Landed in 83f319c |
PR-URL: #22553 Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #22553 Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #22553 Reviewed-By: Anna Henningsen <anna@addaleax.net>
PR-URL: #22553 Reviewed-By: Anna Henningsen <anna@addaleax.net>
This is a slight reduction in SLOC by deduplicating public key parsing in the crypto module as suggested in a comment in lines 3715 to 3717. There should be no functional difference.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes