Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames M Snell <jasnell@gmail.com>2021-03-10 00:50:08 +0300
committerJames M Snell <jasnell@gmail.com>2021-03-19 18:18:37 +0300
commit43f599b534e60933e86db4d9ad87dfd8750a0f06 (patch)
tree2925ba0ca7dfc39f120d44d163bacda9de115688 /src/node_metadata.cc
parent2b710c1413735ad8b497c5d6faf399d0f8c2c577 (diff)
deps: add ngtcp2 and nghttp3
Reintroduces the ngtcp2 and nghttp3 dependencies, building those by default if the vendored-in openssl (with QUIC support) is used or the shared openssl defines `OPENSSL_INFO_QUIC`. Upates the version metadata to reflect whether ngtcp2 and nghttp3 are present. ngtcp2 as of https://github.com/ngtcp2/ngtcp2/commit/2381f7f7b633602d83ad3de997153df730b1f649 nghttp3 as of https://github.com/ngtcp2/nghttp3/commit/66ad30f0a8f5164f87fbc83b37628f8f6d9ba608 Signed-off-by: James M Snell <jasnell@gmail.com> PR-URL: https://github.com/nodejs/node/pull/37682 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Diffstat (limited to 'src/node_metadata.cc')
-rw-r--r--src/node_metadata.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/node_metadata.cc b/src/node_metadata.cc
index 8d0a725de45..46d9be0dfcf 100644
--- a/src/node_metadata.cc
+++ b/src/node_metadata.cc
@@ -13,6 +13,11 @@
#include <openssl/opensslv.h>
#endif // HAVE_OPENSSL
+#ifdef OPENSSL_INFO_QUIC
+#include <ngtcp2/version.h>
+#include <nghttp3/version.h>
+#endif
+
#ifdef NODE_HAVE_I18N_SUPPORT
#include <unicode/timezone.h>
#include <unicode/ulocdata.h>
@@ -95,6 +100,11 @@ Metadata::Versions::Versions() {
icu = U_ICU_VERSION;
unicode = U_UNICODE_VERSION;
#endif // NODE_HAVE_I18N_SUPPORT
+
+#ifdef OPENSSL_INFO_QUIC
+ ngtcp2 = NGTCP2_VERSION;
+ nghttp3 = NGHTTP3_VERSION;
+#endif
}
Metadata::Release::Release() : name(NODE_RELEASE) {