Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 1 addition & 5 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -1413,11 +1413,7 @@
}, {
'sources!': [ '<@(node_cctest_openssl_sources)' ],
}],
[ 'node_use_quic=="true"', {
'defines': [
'HAVE_QUIC=1',
],
}, {
[ 'node_use_quic!="true"', {
'sources!': [ '<@(node_cctest_quic_sources)' ],
}],
[ 'v8_use_perfetto==1 and node_shared_perfetto=="false"', {
Expand Down
3 changes: 0 additions & 3 deletions node.gypi
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,6 @@
'defines': [ 'NODE_SHARED_FFI=0' ]
}],
[ 'node_use_quic=="true"', {
'defines': [ 'HAVE_QUIC=1' ],
'conditions': [
[ 'node_shared_openssl=="false"', {
'dependencies': [
Expand All @@ -484,8 +483,6 @@
],
}],
],
}, {
'defines': [ 'HAVE_QUIC=0' ]
}],
],
}
4 changes: 2 additions & 2 deletions src/node_metadata.cc
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
#ifndef OPENSSL_NO_QUIC
#include <ngtcp2/version.h>
#include <nghttp3/version.h>
#endif
#endif // OPENSSL_NO_QUIC

#ifdef NODE_HAVE_I18N_SUPPORT
#include <unicode/timezone.h>
Expand Down Expand Up @@ -165,7 +165,7 @@ Metadata::Versions::Versions() {
#ifndef OPENSSL_NO_QUIC
ngtcp2 = NGTCP2_VERSION;
nghttp3 = NGHTTP3_VERSION;
#endif
#endif // OPENSSL_NO_QUIC

simdjson = SIMDJSON_VERSION;
simdutf = SIMDUTF_VERSION;
Expand Down
4 changes: 1 addition & 3 deletions src/quic/application.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include "util.h"
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <async_wrap-inl.h>
Expand All @@ -16,6 +14,7 @@
#include "http3.h"
#include "packet.h"
#include "session.h"
#include "util.h"

namespace node {

Expand Down Expand Up @@ -460,4 +459,3 @@ std::unique_ptr<Session::Application> CreateDefaultApplication(
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/bindingdata.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <async_wrap-inl.h>
Expand Down Expand Up @@ -571,4 +570,3 @@ JS_METHOD_IMPL(IllegalConstructor) {
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/cid.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <crypto/crypto_util.h>
Expand Down Expand Up @@ -147,4 +146,3 @@ const CID::Factory& CID::Factory::random() {

} // namespace node::quic
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/data.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -554,4 +553,3 @@ const QuicError QuicError::INTERNAL_ERROR = ForNgtcp2Error(NGTCP2_ERR_INTERNAL);
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/endpoint.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <aliased_struct-inl.h>
Expand Down Expand Up @@ -2200,4 +2199,3 @@ JS_METHOD_IMPL(Endpoint::DoSetSNIContexts) {
} // namespace quic
} // namespace node
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/http3.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <async_wrap-inl.h>
Expand Down Expand Up @@ -1533,4 +1532,3 @@ std::unique_ptr<Session::Application> CreateHttp3Application(
} // namespace quic
} // namespace node
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/packet.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <crypto/crypto_util.h>
Expand Down Expand Up @@ -231,4 +230,3 @@ Packet::Ptr Packet::CreateVersionNegotiationPacket(
} // namespace node::quic

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/preferredaddress.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -155,4 +154,3 @@ const CID PreferredAddress::cid() const {
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/quic.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC

Expand Down Expand Up @@ -67,4 +66,3 @@ NODE_BINDING_PER_ISOLATE_INIT(quic, node::quic::CreatePerIsolateProperties)
NODE_BINDING_EXTERNAL_REFERENCE(quic, node::quic::RegisterExternalReferences)

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/session.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <aliased_struct-inl.h>
Expand Down Expand Up @@ -4492,4 +4491,3 @@ void Session::InitPerContext(Realm* realm, Local<Object> target) {
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/session_manager.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <base_object-inl.h>
Expand Down Expand Up @@ -163,4 +162,3 @@ bool SessionManager::is_empty() const {
} // namespace node::quic

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/sessionticket.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -190,4 +189,3 @@ SessionTicket::AppData::Status SessionTicket::AppData::Extract(
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
4 changes: 1 addition & 3 deletions src/quic/streams.cc
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
#include "ngtcp2/ngtcp2.h"
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <aliased_struct-inl.h>
Expand All @@ -14,6 +12,7 @@
#include "application.h"
#include "bindingdata.h"
#include "defs.h"
#include "ngtcp2/ngtcp2.h"
#include "session.h"
#include "streams.h"

Expand Down Expand Up @@ -1916,4 +1915,3 @@ void Stream::Unschedule() {
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/tlscontext.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <async_wrap-inl.h>
Expand Down Expand Up @@ -1074,4 +1073,3 @@ void TLSSession::MemoryInfo(MemoryTracker* tracker) const {
} // namespace quic
} // namespace node
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/tokens.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <crypto/crypto_util.h>
Expand Down Expand Up @@ -322,4 +321,3 @@ RegularToken::operator const char*() const {
} // namespace node::quic

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions src/quic/transportparams.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "guard.h"
#ifndef OPENSSL_NO_QUIC
#include <async_wrap-inl.h>
Expand Down Expand Up @@ -529,4 +528,3 @@ void TransportParams::Initialize(Environment* env, Local<Object> target) {
} // namespace node

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
5 changes: 3 additions & 2 deletions test/cctest/test_quic_arena.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <gtest/gtest.h>
#include <quic/arena.h>
#include <cstdint>
Expand Down Expand Up @@ -229,4 +230,4 @@ TEST(QuicArenaPool, MultipleAcquireReleaseChurn) {
} // namespace
} // namespace node::quic

#endif // HAVE_OPENSSL && HAVE_QUIC
#endif // OPENSSL_NO_QUIC
2 changes: 0 additions & 2 deletions test/cctest/test_quic_cid.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -117,4 +116,3 @@ TEST(CID, Basic) {
}
}
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions test/cctest/test_quic_error.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -126,4 +125,3 @@ TEST(QuicError, TlsAlert) {
}

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions test/cctest/test_quic_preferredaddress.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -81,4 +80,3 @@ TEST(PreferredAddress, SetTransportParams) {
CHECK_EQ(std::string(ipv4_2.host), "123.123.123.123");
}
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions test/cctest/test_quic_tokenbucket.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <env-inl.h>
Expand Down Expand Up @@ -122,4 +121,3 @@ TEST(QuicTokenBucket, GradualRefill) {
} // namespace node::quic

#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
2 changes: 0 additions & 2 deletions test/cctest/test_quic_tokens.cc
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#if HAVE_OPENSSL && HAVE_QUIC
#include "quic/guard.h"
#ifndef OPENSSL_NO_QUIC
#include <gtest/gtest.h>
Expand Down Expand Up @@ -246,4 +245,3 @@ TEST(RegularToken, Basic) {
CHECK(!token.Validate(NGTCP2_PROTO_VER_MAX, address, secret, 10000000000));
}
#endif // OPENSSL_NO_QUIC
#endif // HAVE_OPENSSL && HAVE_QUIC
Loading