summaryrefslogtreecommitdiff
path: root/src
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 /src
parentb55c9d68aa713e75ff5077cd425cbaafde010b92 (diff)
downloadandroid-node-v8-5d2aef17ee56fbbf415ca1e3034cdb02cd97117c.tar.gz
android-node-v8-5d2aef17ee56fbbf415ca1e3034cdb02cd97117c.tar.bz2
android-node-v8-5d2aef17ee56fbbf415ca1e3034cdb02cd97117c.zip
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 'src')
-rw-r--r--src/node_crypto.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_crypto.cc b/src/node_crypto.cc
index c5dcae281f..45c745c0d3 100644
--- a/src/node_crypto.cc
+++ b/src/node_crypto.cc
@@ -1834,7 +1834,7 @@ void Connection::New(const FunctionCallbackInfo<Value>& args) {
HandleScope scope(env->isolate());
if (args.Length() < 1 || !args[0]->IsObject()) {
- env->ThrowError("First argument must be a crypto module Credentials");
+ env->ThrowError("First argument must be a tls module SecureContext");
return;
}