-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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: make PEM parsing RFC7468-compliant #23164
Conversation
src/node_crypto.cc
Outdated
static ParsePublicKeyResult TryParsePublicKey( | ||
EVPKeyPointer* pkey, | ||
const BIOPointer& bp, | ||
char* name, |
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.
Can be const char* name
, right?
CI: https://ci.nodejs.org/job/node-test-pull-request/17561/ cc @nodejs/crypto |
Landed in ad07e44, thanks for reviewing. |
This change uses
PEM_bytes_read_bio
as suggested by @bnoordhuis to parse public keys as described in RFC7468.Fixes: #13612
Fixes: #22815
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passes