crypto: move `createCredentials` to tls
authorFedor Indutny <fedor.indutny@gmail.com>
Thu, 6 Mar 2014 23:27:01 +0000 (03:27 +0400)
committerFedor Indutny <fedor@indutny.com>
Sat, 29 Mar 2014 08:01:43 +0000 (12:01 +0400)
commit5d2aef17ee56fbbf415ca1e3034cdb02cd97117c
tree4cdf828ffa9b6a3c33ff864539ed8afa83437a69
parentb55c9d68aa713e75ff5077cd425cbaafde010b92
crypto: move `createCredentials` to tls

Move `createCredentials` to `tls` module and rename it to
`createSecureContext`. Make it use default values from `tls` module:
`DEFAULT_CIPHERS` and `DEFAULT_ECDH_CURVE`.

fix #7249
17 files changed:
doc/api/tls.markdown
lib/_tls_common.js [new file with mode: 0644]
lib/_tls_legacy.js
lib/_tls_wrap.js
lib/crypto.js
lib/tls.js
node.gyp
src/node_crypto.cc
test/pummel/test-tls-securepair-client.js
test/simple/test-crypto-binary-default.js
test/simple/test-crypto.js
test/simple/test-tls-client-default-ciphers.js
test/simple/test-tls-delayed-attach.js
test/simple/test-tls-honorcipherorder.js
test/simple/test-tls-npn-server-client.js
test/simple/test-tls-securepair-server.js
test/simple/test-tls-sni-option.js