From a76f0298184115971bac56dd369418786569f76d Mon Sep 17 00:00:00 2001 From: Ben Noordhuis Date: Sat, 2 Jun 2018 10:52:59 +0200 Subject: lib,src: remove openssl feature conditionals MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Remove compile-time and run-time conditionals for features that OpenSSL 1.0.0 and 1.0.1 didn't support: ALPN, OCSP and/or SNI. They are no longer necessary since our baseline is OpenSSL 1.0.2. PR-URL: https://github.com/nodejs/node/pull/21094 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: James M Snell Reviewed-By: Tobias Nießen Reviewed-By: Trivikram Kamat Reviewed-By: Colin Ihrig --- lib/https.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/https.js') diff --git a/lib/https.js b/lib/https.js index 53a8a2751d..43bd6ee06c 100644 --- a/lib/https.js +++ b/lib/https.js @@ -48,7 +48,7 @@ function Server(opts, requestListener) { } opts = util._extend({}, opts); - if (process.features.tls_alpn && !opts.ALPNProtocols) { + if (!opts.ALPNProtocols) { // http/1.0 is not defined as Protocol IDs in IANA // http://www.iana.org/assignments/tls-extensiontype-values // /tls-extensiontype-values.xhtml#alpn-protocol-ids -- cgit v1.2.3