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>
Mon, 8 Apr 2019 13:06:40 +0000 (14:06 +0100)
commit0267fa22f1202c156035726ca26ca12b0fe0ccc4
tree5b2ad553653e80be0de7108a0146ae37f13aee55
parent8173ebc1180eb65943db292b939dbe8c1494bb46
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