diff options
author | Fedor Indutny <fedor.indutny@gmail.com> | 2014-03-07 03:27:01 +0400 |
---|---|---|
committer | Fedor Indutny <fedor@indutny.com> | 2014-03-29 12:01:43 +0400 |
commit | 5d2aef17ee56fbbf415ca1e3034cdb02cd97117c (patch) | |
tree | 4cdf828ffa9b6a3c33ff864539ed8afa83437a69 /test/pummel | |
parent | b55c9d68aa713e75ff5077cd425cbaafde010b92 (diff) | |
download | node-new-5d2aef17ee56fbbf415ca1e3034cdb02cd97117c.tar.gz |
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
Diffstat (limited to 'test/pummel')
-rw-r--r-- | test/pummel/test-tls-securepair-client.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/pummel/test-tls-securepair-client.js b/test/pummel/test-tls-securepair-client.js index 9ef2f6e1f2..711fae3642 100644 --- a/test/pummel/test-tls-securepair-client.js +++ b/test/pummel/test-tls-securepair-client.js @@ -128,7 +128,7 @@ function test(keyfn, certfn, check, next) { function startClient() { var s = new net.Stream(); - var sslcontext = crypto.createCredentials({key: key, cert: cert}); + var sslcontext = tls.createSecureContext({key: key, cert: cert}); sslcontext.context.setCiphers('RC4-SHA:AES128-SHA:AES256-SHA'); var pair = tls.createSecurePair(sslcontext, false); |