mirror of
https://github.com/nodejs/node.git
synced 2026-11-24 21:50:36 -05:00
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/26270 PR-URL: https://github.com/nodejs/node/pull/24405 Reviewed-By: Refael Ackermann <refack@gmail.com> Reviewed-By: Rod Vagg <rod@vagg.org>
This commit is contained in:
1 parent
a92286d6da
commit
d3ebad2d6d
12 files changed
+284
-43
No files matched your search
@@ -188,6 +188,14 @@ Agent.prototype.getName = function getName(options) {
|
||||
if (options.servername && options.servername !== options.host)
|
||||
name += options.servername;
|
||||
|
||||
name += ':';
|
||||
if (options.minVersion)
|
||||
name += options.minVersion;
|
||||
|
||||
name += ':';
|
||||
if (options.maxVersion)
|
||||
name += options.maxVersion;
|
||||
|
||||
name += ':';
|
||||
if (options.secureProtocol)
|
||||
name += options.secureProtocol;
|
||||
|
||||
Reference in new issue
Block a user