tls: add min/max protocol version options
authorSam Roberts <vieuxtech@gmail.com>
Sun, 6 May 2018 04:52:34 +0000 (13:52 +0900)
committerJérémy Lal <kapouer@melix.org>
Thu, 28 Feb 2019 14:52:30 +0000 (14:52 +0000)
commit1659eaddb56e8bce86437f4228da4434bf4b2be5
treeb3dde5437044e40b42164c1fd51d55d83106b41b
parent53c0b555e83f3fae82b0dbd1287977192e0a0275
tls: add min/max protocol version options

The existing secureProtocol option only allows setting the allowed
protocol to a specific version, or setting it to "all supported
versions". It also used obscure strings based on OpenSSL C API
functions. Directly setting the min or max is easier to use and explain.

Backport-PR-URL: https://github.com/nodejs/node/pull/24676
PR-URL: https://github.com/nodejs/node/pull/24405
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
Gbp-Pq: Topic ssl
Gbp-Pq: Name acb73518b7274bacdfc133fd121e91dfd6ba460b.patch
doc/api/errors.md
doc/api/tls.md
lib/_tls_common.js
lib/_tls_wrap.js
lib/https.js
lib/internal/errors.js
lib/tls.js
src/node_constants.cc
src/node_crypto.cc
test/fixtures/tls-connect.js
test/parallel/test-https-agent-getname.js