crypto: make randomBytes/pbkdf2 cbs domain aware
authorBen Noordhuis <info@bnoordhuis.nl>
Tue, 27 Aug 2013 19:11:13 +0000 (21:11 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Wed, 28 Aug 2013 10:37:49 +0000 (12:37 +0200)
commit29d3624daedc9a120fa596402e34173179e4a868
tree1fcd431f065cb2b751f6f6346036b2a8d9e7df3e
parent9c110d80276282c0f8c63bd4c6973f28e57c9eb5
crypto: make randomBytes/pbkdf2 cbs domain aware

Make the crypto.randomBytes() and crypto.pbkdf2() callback functions
run inside the current domain (if any.)

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