diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2019-05-01 11:45:45 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2019-05-05 08:23:43 -0700 |
commit | 3d98051e207324353c462b1f53ee0e8fe262297d (patch) | |
tree | 2a039e43ed921d9ead70aa25c4a61bf0e6e1cd0f /lib/tls.js | |
parent | 7467a5d4393a82b504ef74c6d047628b0043a061 (diff) | |
download | android-node-v8-3d98051e207324353c462b1f53ee0e8fe262297d.tar.gz android-node-v8-3d98051e207324353c462b1f53ee0e8fe262297d.tar.bz2 android-node-v8-3d98051e207324353c462b1f53ee0e8fe262297d.zip |
tls: add --tls-min-v1.2 CLI switch
Switch added in v11.x, add it to master/12.x for consistency and
compatibility.
See: https://github.com/nodejs/node/pull/26951, commit bf2c283555c6b26
PR-URL: https://github.com/nodejs/node/pull/27520
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
Diffstat (limited to 'lib/tls.js')
-rw-r--r-- | lib/tls.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tls.js b/lib/tls.js index 422ed7958a..fa247411f3 100644 --- a/lib/tls.js +++ b/lib/tls.js @@ -60,6 +60,8 @@ if (getOptionValue('--tls-min-v1.0')) exports.DEFAULT_MIN_VERSION = 'TLSv1'; else if (getOptionValue('--tls-min-v1.1')) exports.DEFAULT_MIN_VERSION = 'TLSv1.1'; +else if (getOptionValue('--tls-min-v1.2')) + exports.DEFAULT_MIN_VERSION = 'TLSv1.2'; else if (getOptionValue('--tls-min-v1.3')) exports.DEFAULT_MIN_VERSION = 'TLSv1.3'; else |