crypto: Use OPENSSL_cleanse to shred the data.
authorСковорода Никита Андреевич <chalkerx@gmail.com>
Thu, 27 Aug 2015 09:24:45 +0000 (12:24 +0300)
committerСковорода Никита Андреевич <chalkerx@gmail.com>
Thu, 27 Aug 2015 10:20:42 +0000 (13:20 +0300)
commit87df7d3be341cc590249837ed316bd91baf6ebc2
tree8565ac7f69f61cccee44864782f61fee51b211a6
parentbdef668881498f519e4a9432a239d5178c00e87a
crypto: Use OPENSSL_cleanse to shred the data.

memset() is not useful here, it's efficiently a noop.

PR-URL: https://github.com/nodejs/node/pull/2575
Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com>
src/node_crypto.cc