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>
This commit is contained in:
Sam Roberts authored and Myles Borins committed 2017-01-31 17:07:45 -05:00
1 parent 6b8d4cab41
commit 95a0a67ff3
1 file changed
+3 -3
+3 -3
View File
@@ -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;