0
0
mirror of https://github.com/nodejs/node.git synced 2024-11-30 07:27:22 +01:00

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 2016-11-22 13:23:06 -08:00
parent 475b8db835
commit a28e949145

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;