crypto: make getCiphers() return non-SSL ciphers
authorBen Noordhuis <info@bnoordhuis.nl>
Mon, 18 Mar 2013 23:16:55 +0000 (00:16 +0100)
committerBen Noordhuis <info@bnoordhuis.nl>
Mon, 25 Mar 2013 17:42:07 +0000 (18:42 +0100)
commitcfd0dca9ae0c834e91823c59784f697d0559a63b
treee258dd01dcc14eb40517a8b940c4ec14b2651271
parent488b74d68bc259c066351dd24adebbdeb53f4d24
crypto: make getCiphers() return non-SSL ciphers

Commit f53441a added crypto.getCiphers() as a function that returns the
names of SSL ciphers.

Commit 14a6c4e then added crypto.getHashes(), which returns the names of
digest algorithms, but that creates a subtle inconsistency: the return
values of crypto.getHashes() are valid arguments to crypto.createHash()
but that is not true for crypto.getCiphers() - the returned values are
only valid for SSL/TLS functions.

Rectify that by adding tls.getCiphers() and making crypto.getCiphers()
return proper cipher names.
doc/api/crypto.markdown
doc/api/tls.markdown
lib/crypto.js
lib/tls.js
src/node_crypto.cc
test/simple/test-crypto.js