GeezerVison is showing github.com — src: remove `HAVE_QUIC` macro in favor of `OPENSSL_NO_QUIC` · nodejs/node@de87de3
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 |
|---|
| 1399 | 1399 | }, { | 1400 | 1400 | 'sources!': [ '<@(node_cctest_openssl_sources)' ], | 1401 | 1401 | }], | 1402 | | - [ 'node_use_quic=="true"', { | 1403 | | - 'defines': [ | 1404 | | - 'HAVE_QUIC=1', | 1405 | | - ], | 1406 | | - }, { | | 1402 | + [ 'node_use_quic!="true"', { | 1407 | 1403 | 'sources!': [ '<@(node_cctest_quic_sources)' ], | 1408 | 1404 | }], | 1409 | 1405 | [ 'v8_use_perfetto==1 and node_shared_perfetto=="false"', { | |
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 |
|---|
| 471 | 471 | 'defines': [ 'NODE_SHARED_FFI=0' ] | 472 | 472 | }], | 473 | 473 | [ 'node_use_quic=="true"', { | 474 | | - 'defines': [ 'HAVE_QUIC=1' ], | 475 | 474 | 'conditions': [ | 476 | 475 | [ 'node_shared_openssl=="false"', { | 477 | 476 | 'dependencies': [ | | 484 | 483 | ], | 485 | 484 | }], | 486 | 485 | ], | 487 | | - }, { | 488 | | - 'defines': [ 'HAVE_QUIC=0' ] | 489 | 486 | }], | 490 | 487 | ], | 491 | 488 | } |
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 |
|---|
| 42 | 42 | #ifndef OPENSSL_NO_QUIC | 43 | 43 | #include <ngtcp2/version.h> | 44 | 44 | #include <nghttp3/version.h> | 45 | | -#endif | | 45 | +#endif // OPENSSL_NO_QUIC | 46 | 46 |
| 47 | 47 | #ifdef NODE_HAVE_I18N_SUPPORT | 48 | 48 | #include <unicode/timezone.h> | @@ -165,7 +165,7 @@ Metadata::Versions::Versions() { | 165 | 165 | #ifndef OPENSSL_NO_QUIC | 166 | 166 | ngtcp2 = NGTCP2_VERSION; | 167 | 167 | nghttp3 = NGHTTP3_VERSION; | 168 | | -#endif | | 168 | +#endif // OPENSSL_NO_QUIC | 169 | 169 |
| 170 | 170 | simdjson = SIMDJSON_VERSION; | 171 | 171 | 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 |
| @@ -460,4 +459,3 @@ std::unique_ptr<Session::Application> CreateDefaultApplication( | 460 | 459 | } // namespace node | 461 | 460 |
| 462 | 461 | #endif // OPENSSL_NO_QUIC | 463 | | -#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 <async_wrap-inl.h> | @@ -571,4 +570,3 @@ JS_METHOD_IMPL(IllegalConstructor) { | 571 | 570 | } // namespace node | 572 | 571 |
| 573 | 572 | #endif // OPENSSL_NO_QUIC | 574 | | -#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> | @@ -2200,4 +2199,3 @@ JS_METHOD_IMPL(Endpoint::DoSetSNIContexts) { | 2200 | 2199 | } // namespace quic | 2201 | 2200 | } // namespace node | 2202 | 2201 | #endif // OPENSSL_NO_QUIC | 2203 | | -#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> | @@ -1533,4 +1532,3 @@ std::unique_ptr<Session::Application> CreateHttp3Application( | 1533 | 1532 | } // namespace quic | 1534 | 1533 | } // namespace node | 1535 | 1534 | #endif // OPENSSL_NO_QUIC | 1536 | | -#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 |
|