summaryrefslogtreecommitdiff
path: root/lib/_tls_common.js
diff options
context:
space:
mode:
authorSam Roberts <vieuxtech@gmail.com>2016-11-22 13:23:06 -0800
committerSam Roberts <vieuxtech@gmail.com>2016-12-12 08:15:54 -0800
commita28e9491453d7574344815a632ac6385c2054394 (patch)
treef307383fb8154815ab18603d901a77ffd39adaca /lib/_tls_common.js
parent475b8db8354b50b971653912de82fc336001c6d3 (diff)
downloadandroid-node-v8-a28e9491453d7574344815a632ac6385c2054394.tar.gz
android-node-v8-a28e9491453d7574344815a632ac6385c2054394.tar.bz2
android-node-v8-a28e9491453d7574344815a632ac6385c2054394.zip
tls: do not refer to secureOptions as flags
Its confusing to have multiple names for the same thing, use secureOptions consistently. PR-URL: https://github.com/nodejs/node/pull/9800 Reviewed-By: Roman Reiss <me@silverwind.io> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Diffstat (limited to 'lib/_tls_common.js')
-rw-r--r--lib/_tls_common.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/_tls_common.js b/lib/_tls_common.js
index 6e98c1ee4d..9cb7045386 100644
--- a/lib/_tls_common.js
+++ b/lib/_tls_common.js
@@ -12,9 +12,9 @@ var crypto = null;
const binding = process.binding('crypto');
const NativeSecureContext = binding.SecureContext;
-function SecureContext(secureProtocol, flags, context) {
+function SecureContext(secureProtocol, secureOptions, context) {
if (!(this instanceof SecureContext)) {
- return new SecureContext(secureProtocol, flags, context);
+ return new SecureContext(secureProtocol, secureOptions, context);
}
if (context) {
@@ -29,7 +29,7 @@ function SecureContext(secureProtocol, flags, context) {
}
}
- if (flags) this.context.setOptions(flags);
+ if (secureOptions) this.context.setOptions(secureOptions);
}
exports.SecureContext = SecureContext;