summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2023-03-04 22:12:48 +0000
committerDanielle Adams <adamzdanielle@gmail.com>2023-04-10 20:55:12 -0400
commit4652dfdc888cc1a2fc2aeb7c6000c84239a5ebf1 (patch)
tree3cd5d259632cfaaf59666cba2693785d1dd458ff
parenta4a433fc0b24ec37935f3b46f501a111a4134bb7 (diff)
downloadnode-new-4652dfdc888cc1a2fc2aeb7c6000c84239a5ebf1.tar.gz
src: remove TLSEXT_TYPE_alpn guard
TLSEXT_TYPE_application_layer_protocol_negotiation is always defined in all supported OpenSSL versions. We also use this macro elsewhere without guards, so if it did not exist, compilation would have already failed. Besides that, it makes little sense to provide a TLS 1.3 implementation that does not support ALPN. PR-URL: https://github.com/nodejs/node/pull/46956 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
-rw-r--r--src/node_constants.cc2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/node_constants.cc b/src/node_constants.cc
index 3269e3003a..34496673a9 100644
--- a/src/node_constants.cc
+++ b/src/node_constants.cc
@@ -1032,10 +1032,8 @@ void DefineCryptoConstants(Local<Object> target) {
NODE_DEFINE_CONSTANT(target, DH_NOT_SUITABLE_GENERATOR);
#endif
-#ifdef TLSEXT_TYPE_application_layer_protocol_negotiation
#define ALPN_ENABLED 1
NODE_DEFINE_CONSTANT(target, ALPN_ENABLED);
-#endif
#ifdef RSA_PKCS1_PADDING
NODE_DEFINE_CONSTANT(target, RSA_PKCS1_PADDING);