crypto: use domains for any callback-taking method
authorChris Dickinson <christopher.s.dickinson@gmail.com>
Tue, 16 Sep 2014 17:14:24 +0000 (10:14 -0700)
committerTimothy J Fontaine <tjfontaine@gmail.com>
Tue, 16 Sep 2014 22:23:04 +0000 (15:23 -0700)
commit6e689ece46726f39bdf93f1f35e01656f8fe27dc
treeb0308dded48e790a09539b98ce95bc78ffe23ffb
parent0664ddc093961d771b22fafae4f38b0f38140ebf
crypto: use domains for any callback-taking method

This adds domains coverage for pdbkdf2, pseudoRandomBytes, and randomBytes.
All others should be covered by event emitters.

Fixes #5801.

Reviewed-By: Timothy J Fontaine <tjfontaine@gmail.com>
src/node_crypto.cc
src/util.h
test/simple/test-crypto-domains.js [new file with mode: 0644]