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:
parent
475b8db835
commit
a28e949145
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user