Commit 00bffa6c authored by P.S.V.R's avatar P.S.V.R Committed by Fedor Indutny
Browse files

crypto: check for OpenSSL errors when signing

Errors might be injected into OpenSSL's error stack
without the return value of `PEM_read_bio_PrivateKey` being set to
`nullptr`. See the test of `test_bad_rsa_privkey.pem` for an
example.

PR-URL: https://github.com/nodejs/node/pull/2342


Reviewed-By: default avatarFedor Indutny <fedor@indutny.com>
parent 102939ad
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment