GeezerVison is showing github.com — src: remove `HAVE_QUIC` macro in favor of `OPENSSL_NO_QUIC` · nodejs/node@0814dc8
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: node.gyp +1-5Lines changed: 1 addition & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1331 | 1331 | }, { | 1332 | 1332 | 'sources!': [ '<@(node_cctest_openssl_sources)' ], | 1333 | 1333 | }], | 1334 | | - [ 'node_use_quic=="true"', { | 1335 | | - 'defines': [ | 1336 | | - 'HAVE_QUIC=1', | 1337 | | - ], | 1338 | | - }, { | | 1334 | + [ 'node_use_quic!="true"', { | 1339 | 1335 | 'sources!': [ '<@(node_cctest_quic_sources)' ], | 1340 | 1336 | }], | 1341 | 1337 | ['v8_enable_inspector==1', { | |
Collapse file Copy file name to clipboardExpand all lines: node.gypi -3Lines changed: 0 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 445 | 445 | 'defines': [ 'HAVE_SQLITE=0' ] | 446 | 446 | }], | 447 | 447 | [ 'node_use_quic=="true"', { | 448 | | - 'defines': [ 'HAVE_QUIC=1' ], | 449 | 448 | 'conditions': [ | 450 | 449 | [ 'node_shared_openssl=="false"', { | 451 | 450 | 'dependencies': [ | | 458 | 457 | ], | 459 | 458 | }], | 460 | 459 | ], | 461 | | - }, { | 462 | | - 'defines': [ 'HAVE_QUIC=0' ] | 463 | 460 | }], | 464 | 461 | ], | 465 | 462 | } |
Collapse file Copy file name to clipboardExpand all lines: src/node_metadata.cc +2-2Lines changed: 2 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 39 | 39 | #ifndef OPENSSL_NO_QUIC | 40 | 40 | #include <ngtcp2/version.h> | 41 | 41 | #include <nghttp3/version.h> | 42 | | -#endif | | 42 | +#endif // OPENSSL_NO_QUIC | 43 | 43 |
| 44 | 44 | #ifdef NODE_HAVE_I18N_SUPPORT | 45 | 45 | #include <unicode/timezone.h> | @@ -151,7 +151,7 @@ Metadata::Versions::Versions() { | 151 | 151 | #ifndef OPENSSL_NO_QUIC | 152 | 152 | ngtcp2 = NGTCP2_VERSION; | 153 | 153 | nghttp3 = NGHTTP3_VERSION; | 154 | | -#endif | | 154 | +#endif // OPENSSL_NO_QUIC | 155 | 155 |
| 156 | 156 | simdjson = SIMDJSON_VERSION; | 157 | 157 | simdutf = SIMDUTF_VERSION; | |
Collapse file Copy file name to clipboardExpand all lines: src/quic/application.cc +1-3Lines changed: 1 addition & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#include "util.h" | 2 | | -#if HAVE_OPENSSL && HAVE_QUIC | 3 | 1 | #include "guard.h" | 4 | 2 | #ifndef OPENSSL_NO_QUIC | 5 | 3 | #include <async_wrap-inl.h> | | 16 | 14 | #include "http3.h" | 17 | 15 | #include "packet.h" | 18 | 16 | #include "session.h" | | 17 | +#include "util.h" | 19 | 18 |
| 20 | 19 | namespace node { | 21 | 20 |
| @@ -491,4 +490,3 @@ std::unique_ptr<Session::Application> CreateDefaultApplication( | 491 | 490 | } // namespace node | 492 | 491 |
| 493 | 492 | #endif // OPENSSL_NO_QUIC | 494 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/bindingdata.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <base_object-inl.h> | @@ -521,4 +520,3 @@ JS_METHOD_IMPL(IllegalConstructor) { | 521 | 520 | } // namespace node | 522 | 521 |
| 523 | 522 | #endif // OPENSSL_NO_QUIC | 524 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/cid.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <crypto/crypto_util.h> | @@ -147,4 +146,3 @@ const CID::Factory& CID::Factory::random() { | 147 | 146 |
| 148 | 147 | } // namespace node::quic | 149 | 148 | #endif // OPENSSL_NO_QUIC | 150 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/data.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <env-inl.h> | @@ -554,4 +553,3 @@ const QuicError QuicError::INTERNAL_ERROR = ForNgtcp2Error(NGTCP2_ERR_INTERNAL); | 554 | 553 | } // namespace node | 555 | 554 |
| 556 | 555 | #endif // OPENSSL_NO_QUIC | 557 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/endpoint.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <aliased_struct-inl.h> | @@ -2194,4 +2193,3 @@ JS_METHOD_IMPL(Endpoint::DoSetSNIContexts) { | 2194 | 2193 | } // namespace quic | 2195 | 2194 | } // namespace node | 2196 | 2195 | #endif // OPENSSL_NO_QUIC | 2197 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/http3.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <async_wrap-inl.h> | @@ -1496,4 +1495,3 @@ std::unique_ptr<Session::Application> CreateHttp3Application( | 1496 | 1495 | } // namespace quic | 1497 | 1496 | } // namespace node | 1498 | 1497 | #endif // OPENSSL_NO_QUIC | 1499 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
Collapse file Copy file name to clipboardExpand all lines: src/quic/packet.cc -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | | -#if HAVE_OPENSSL && HAVE_QUIC | 2 | 1 | #include "guard.h" | 3 | 2 | #ifndef OPENSSL_NO_QUIC | 4 | 3 | #include <crypto/crypto_util.h> | @@ -231,4 +230,3 @@ Packet::Ptr Packet::CreateVersionNegotiationPacket( | 231 | 230 | } // namespace node::quic | 232 | 231 |
| 233 | 232 | #endif // OPENSSL_NO_QUIC | 234 | | -#endif // HAVE_OPENSSL && HAVE_QUIC |
|