crypto: clear errors from verify failure
authorTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 18 Oct 2013 21:14:21 +0000 (14:14 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Fri, 18 Oct 2013 21:14:21 +0000 (14:14 -0700)
commit5e41c022af741444def80967aab6ea0f9ec73057
tree319e2942647ba1693767d8b02ecc725ef641957a
parent8fc48bcf4ca49f16b910b388481030870f78665f
crypto: clear errors from verify failure

OpenSSL will push errors onto the stack when a verify fails, which can
disrupt TLS and other routines if we don't clear the error stack

Fixes #6304
src/node_crypto.cc
test/simple/test-crypto-verify-failure.js [new file with mode: 0644]