crypto: honor default ciphers in client mode
authorJacob Hoffman-Andrews <github@hoffman-andrews.com>
Fri, 24 Jan 2014 01:28:08 +0000 (17:28 -0800)
committerFedor Indutny <fedor.indutny@gmail.com>
Mon, 27 Jan 2014 23:28:09 +0000 (03:28 +0400)
commitf4c8020d1068ffba57458b327c62b61b1f29ec63
tree5c4900e59ae8bc554bfa4a76ff93035b371c142a
parentdc1ffd0da6fcaa2b18bd6817ca3541264ebc8ce7
crypto: honor default ciphers in client mode

Right now no default ciphers are use in, e.g. https.get, meaning that
weak export ciphers like TLS_RSA_EXPORT_WITH_DES40_CBC_SHA are
accepted.

To reproduce:

node -e "require('https').get({hostname: 'www.howsmyssl.com', \
  path: '/a/check'}, function(res) {res.on('data', \
  function(d) {process.stdout.write(d)})})"
lib/_tls_wrap.js
test/simple/test-tls-client-default-ciphers.js [new file with mode: 0644]
test/simple/test-tls-honorcipherorder.js