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 /src | |
parent | b55c9d68aa713e75ff5077cd425cbaafde010b92 (diff) | |
download | android-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.cc | 2 |
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; } |