Commit 7fe6dd8f authored by P.S.V.R's avatar P.S.V.R Committed by Jeremiah Senkpiel
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 cbb75c4f
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