summaryrefslogtreecommitdiff
path: root/test/pummel
diff options
context:
space:
mode:
authorFedor Indutny <fedor.indutny@gmail.com>2014-03-07 03:27:01 +0400
committerFedor Indutny <fedor@indutny.com>2014-03-29 12:01:43 +0400
commit5d2aef17ee56fbbf415ca1e3034cdb02cd97117c (patch)
tree4cdf828ffa9b6a3c33ff864539ed8afa83437a69 /test/pummel
parentb55c9d68aa713e75ff5077cd425cbaafde010b92 (diff)
downloadnode-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.js2
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);