diff options
author | James M Snell <jasnell@gmail.com> | 2021-03-10 00:50:08 +0300 |
---|---|---|
committer | James M Snell <jasnell@gmail.com> | 2021-03-19 18:18:37 +0300 |
commit | 43f599b534e60933e86db4d9ad87dfd8750a0f06 (patch) | |
tree | 2925ba0ca7dfc39f120d44d163bacda9de115688 /src/node_metadata.h | |
parent | 2b710c1413735ad8b497c5d6faf399d0f8c2c577 (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.h')
-rw-r--r-- | src/node_metadata.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/node_metadata.h b/src/node_metadata.h index bf7e5d3ff4e..4486d5af2c1 100644 --- a/src/node_metadata.h +++ b/src/node_metadata.h @@ -6,6 +6,10 @@ #include <string> #include "node_version.h" +#if HAVE_OPENSSL +#include <openssl/crypto.h> +#endif // HAVE_OPENSSL + namespace node { // if this is a release build and no explicit base has been set @@ -48,10 +52,19 @@ namespace node { #define NODE_VERSIONS_KEY_INTL(V) #endif // NODE_HAVE_I18N_SUPPORT +#ifdef OPENSSL_INFO_QUIC +#define NODE_VERSIONS_KEY_QUIC(V) \ + V(ngtcp2) \ + V(nghttp3) +#else +#define NODE_VERSIONS_KEY_QUIC(V) +#endif + #define NODE_VERSIONS_KEYS(V) \ NODE_VERSIONS_KEYS_BASE(V) \ NODE_VERSIONS_KEY_CRYPTO(V) \ - NODE_VERSIONS_KEY_INTL(V) + NODE_VERSIONS_KEY_INTL(V) \ + NODE_VERSIONS_KEY_QUIC(V) class Metadata { public: |