GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — deps: add ngtcp2 test binaries · nodejs/node@fe88f31

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • deps
    • nghttp2
      • nghttp2.gyp
    • ngtcp2
      • ngtcp2.gyp
      • ngtcp2
        • examples
          • client.cc
          • client.h
          • client_base.cc
          • client_base.h
          • debug.cc
          • debug.h
          • examplestest.cc
          • gtlssimpleclient.c
          • h09client.cc
          • h09client.h
          • h09server.cc
          • h09server.h
          • http.cc
          • http.h
          • network.h
          • server.cc
          • server.h
          • server_base.cc
          • server_base.h
          • shared.cc
          • shared.h
          • simpleclient.c
          • siphash.cc
          • siphash.h
          • siphash_test.cc
          • siphash_test.h
          • siphash_vector.h
          • template.h
          • tests
            • README.rst
            • __init__.py
            • conftest.py
            • ngtcp2test
              • __init__.py
              • certs.py
              • client.py
              • env.py
              • log.py
              • server.py
              • tls.py
            • test_01_handshake.py
            • test_02_resume.py
            • test_03_earlydata.py
            • test_04_clientcert.py
            • test_05_ciphers.py
          • tls_client_context.h
          • tls_client_context_boringssl.cc
          • tls_client_context_boringssl.h
          • tls_client_context_ossl.cc
          • tls_client_context_ossl.h
          • tls_client_context_picotls.cc
          • tls_client_context_picotls.h
          • tls_client_context_quictls.cc
          • tls_client_context_quictls.h
          • tls_client_context_wolfssl.cc
          • tls_client_context_wolfssl.h
          • tls_client_session.h
          • tls_client_session_boringssl.cc
          • tls_client_session_boringssl.h
          • tls_client_session_ossl.cc
          • tls_client_session_ossl.h
          • tls_client_session_picotls.cc
          • tls_client_session_picotls.h
          • tls_client_session_quictls.cc
          • tls_client_session_quictls.h
          • tls_client_session_wolfssl.cc
          • tls_client_session_wolfssl.h
          • tls_server_context.h
          • tls_server_context_boringssl.cc
          • tls_server_context_boringssl.h
          • tls_server_context_ossl.cc
          • tls_server_context_ossl.h
          • tls_server_context_picotls.cc
          • tls_server_context_picotls.h
          • tls_server_context_quictls.cc
          • tls_server_context_quictls.h
          • tls_server_context_wolfssl.cc
          • tls_server_context_wolfssl.h
          • tls_server_session.h
          • tls_server_session_boringssl.cc
          • tls_server_session_boringssl.h
          • tls_server_session_ossl.cc
          • tls_server_session_ossl.h
          • tls_server_session_picotls.cc
          • tls_server_session_picotls.h
          • tls_server_session_quictls.cc
          • tls_server_session_quictls.h
          • tls_server_session_wolfssl.cc
          • tls_server_session_wolfssl.h
          • tls_session_base_ossl.cc
          • tls_session_base_ossl.h
          • tls_session_base_picotls.cc
          • tls_session_base_picotls.h
          • tls_session_base_quictls.cc
          • tls_session_base_quictls.h
          • tls_session_base_wolfssl.cc
          • tls_session_base_wolfssl.h
          • tls_shared_boringssl.cc
          • tls_shared_boringssl.h
          • tls_shared_picotls.cc
          • tls_shared_picotls.h
          • util.cc
          • util.h
          • util_openssl.cc
          • util_test.cc
          • util_test.h
          • util_wolfssl.cc
        • third-party
          • http-parser
            • .mailmap
            • .travis.yml
            • AUTHORS
            • LICENSE-MIT
            • README.md
            • bench.c
            • contrib
              • parsertrace.c
              • url_parser.c
            • http_parser.c
            • http_parser.gyp
            • http_parser.h
            • test.c
          • libev
            • Changes
            • LICENSE
            • README
            • Symbols.event
            • Symbols.ev
            • TODO
            • aclocal.m4
            • autogen.sh
            • compile
            • config.guess
            • config.h
            • config.log
            • config.status
            • config.sub
            • configure.ac
            • configure
            • depcomp
            • ev++.h
            • ev.3
            • ev.c
            • ev.h
            • ev.pod
            • ev_epoll.c
            • ev_iouring.c
            • ev_kqueue.c
            • ev_linuxaio.c
            • ev_poll.c
            • ev_port.c
            • ev_select.c
            • ev_vars.h
            • ev_win32.c
            • ev_wrap.h
            • event.c
            • event.h
            • install-sh
            • libev.m4
            • libtool
            • ltmain.sh
            • missing
            • mkinstalldirs
            • stamp-h1
          • urlparse
            • .clang-format
            • .clusterfuzzlite
              • Dockerfile
              • build.sh
              • project.yaml
            • .gitmodules
            • AUTHORS
            • COPYING
            • ChangeLog
            • NEWS
            • README.rst
            • README
            • configure.ac
            • doc
              • mkapiref.py
              • source
                • index.rst
            • examples.c
            • fuzz
              • corpus/parser
                • connect-ipv6
                • connect
                • example
                • ipv6
                • long
              • parser.cc
            • http-parser
              • .mailmap
              • .travis.yml
              • AUTHORS
              • LICENSE-MIT
              • README.md
              • bench.c
              • contrib
                • parsertrace.c
                • url_parser.c
              • fuzzers
                • fuzz_parser.c
                • fuzz_url.c
              • http_parser.c
              • http_parser.gyp
              • http_parser.h
              • test.c
            • http_parser_compat_test.c
            • http_parser_compat_test.h
            • munit
              • .appveyor.yml
              • .clang-format
              • .dir-locals.el
              • .travis.yml
              • COPYING
              • README.md
              • example.c
              • meson.build
              • munit.c
              • munit.h
              • munitxx.h
            • urlparse.c
            • urlparse.h
            • urlparse_test.c
            • urlparse_test.h
            • urlparse_test_main.c
  • tools/dep_updaters
    • update-ngtcp2.sh

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎deps/nghttp2/nghttp2.gyp‎

Copy file name to clipboardExpand all lines: deps/nghttp2/nghttp2.gyp
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,17 @@
6767
'sources': [
6868
'<@(nghttp2_sources)',
6969
]
70+
},
71+
{
72+
'target_name': 'sfparse',
73+
'type': 'static_library',
74+
'include_dirs': ['lib'],
75+
'sources': [
76+
'lib/sfparse.c',
77+
],
78+
'direct_dependent_settings': {
79+
'include_dirs': [ 'lib/includes' ]
80+
}
7081
}
7182
]
7283
}
Collapse file

‎deps/ngtcp2/ngtcp2.gyp‎

Copy file name to clipboardExpand all lines: deps/ngtcp2/ngtcp2.gyp
+164-13Lines changed: 164 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,36 @@
8989
'nghttp3/lib/nghttp3_unreachable.c',
9090
'nghttp3/lib/nghttp3_vec.c',
9191
'nghttp3/lib/nghttp3_version.c',
92+
],
93+
'ngtcp2_test_server_sources': [
94+
'ngtcp2/examples/tls_server_session_ossl.cc',
95+
'ngtcp2/examples/tls_server_context_ossl.cc',
96+
'ngtcp2/examples/tls_session_base_ossl.cc',
97+
'ngtcp2/examples/util_openssl.cc',
98+
'ngtcp2/examples/http.cc',
99+
'ngtcp2/examples/server_base.cc',
100+
'ngtcp2/examples/shared.cc',
101+
'ngtcp2/examples/server.cc',
102+
'ngtcp2/examples/util.cc',
103+
'ngtcp2/examples/debug.cc',
104+
'ngtcp2/examples/siphash.cc',
105+
'ngtcp2/third-party/urlparse/urlparse.c',
106+
'ngtcp2/third-party/libev/ev.c',
107+
],
108+
'ngtcp2_test_client_sources': [
109+
'ngtcp2/examples/tls_client_session_ossl.cc',
110+
'ngtcp2/examples/tls_client_context_ossl.cc',
111+
'ngtcp2/examples/tls_session_base_ossl.cc',
112+
'ngtcp2/examples/util_openssl.cc',
113+
'ngtcp2/examples/http.cc',
114+
'ngtcp2/examples/client_base.cc',
115+
'ngtcp2/examples/shared.cc',
116+
'ngtcp2/examples/client.cc',
117+
'ngtcp2/examples/util.cc',
118+
'ngtcp2/examples/debug.cc',
119+
'ngtcp2/examples/siphash.cc',
120+
'ngtcp2/third-party/urlparse/urlparse.c',
121+
'ngtcp2/third-party/libev/ev.c',
92122
]
93123
},
94124
'targets': [
@@ -133,19 +163,6 @@
133163
'HAVE_NETINET_IN_H',
134164
],
135165
}],
136-
# TODO: Support OpenSSL 3.5 shared library builds.
137-
# The complexity here is that we need to use the ngtcp2 ossl
138-
# adapter, which does not include any conditional checks to
139-
# see if the version of OpenSSL used has the necessary QUIC
140-
# APIs, so we need to ensure that we conditionally enable use
141-
# of the adapter only when we know that the OpenSSL version we
142-
# are compiling against has the necessary APIs. We can do that
143-
# by checkig the OpenSSL version number but, currently, the
144-
# code that does so checks only the VERSION.dat file that is
145-
# bundled with the openssl dependency. We'll need to update
146-
# that to support the shared library case, where the version
147-
# of the shared library needs to be determined.
148-
#
149166
# TODO: Support Boringssl here also. ngtcp2 provides an adapter
150167
# for Boringssl. If we can detect that boringssl is being used
151168
# here then we can use that adapter and also set the
@@ -227,6 +244,140 @@
227244
'sources': [
228245
'<@(nghttp3_sources)'
229246
]
247+
},
248+
{
249+
'target_name': 'ngtcp2_test_server',
250+
'type': 'executable',
251+
'cflags': [ '-Wno-everything' ],
252+
'include_dirs': [
253+
'',
254+
'ngtcp2/examples/',
255+
'ngtcp2/lib/includes/',
256+
'ngtcp2/crypto/includes/',
257+
'ngtcp2/third-party/urlparse/',
258+
'ngtcp2/third-party/libev/',
259+
'../../nghttp2/lib',
260+
],
261+
'dependencies': [
262+
'ngtcp2',
263+
'nghttp3',
264+
'../openssl/openssl.gyp:openssl',
265+
'../nghttp2/nghttp2.gyp:sfparse',
266+
],
267+
'defines': [
268+
'HAVE_CONFIG_H',
269+
'WITH_EXAMPLE_OSSL',
270+
'EV_STANDALONE=1',
271+
],
272+
'conditions': [
273+
['OS=="mac"', {
274+
'defines': [
275+
'__APPLE_USE_RFC_3542',
276+
]
277+
}],
278+
['OS=="solaris"', {
279+
'defines': [
280+
'IPTOS_ECN_MASK=0x03',
281+
],
282+
'link_settings': {
283+
'libraries': [ '-lsocket', '-lnsl' ],
284+
},
285+
}],
286+
['OS=="win"', {
287+
'defines': [
288+
'WIN32',
289+
'_WINDOWS',
290+
],
291+
'msvs_settings': {
292+
'VCCLCompilerTool': {
293+
'CompileAs': '1'
294+
},
295+
},
296+
}],
297+
['OS!="win"', {
298+
'defines': [
299+
'HAVE_UNISTD_H',
300+
'HAVE_ARPA_INET_H',
301+
'HAVE_NETINET_IN_H',
302+
'HAVE_NETINET_IP_H',
303+
],
304+
}],
305+
[ 'OS=="linux" or OS=="openharmony"', {
306+
'link_settings': {
307+
'libraries': [ '-ldl', '-lrt' ],
308+
},
309+
}],
310+
],
311+
'sources': [
312+
'<@(ngtcp2_test_server_sources)'
313+
]
314+
},
315+
{
316+
'target_name': 'ngtcp2_test_client',
317+
'type': 'executable',
318+
'cflags': [ '-Wno-everything' ],
319+
'include_dirs': [
320+
'',
321+
'ngtcp2/examples/',
322+
'ngtcp2/lib/includes/',
323+
'ngtcp2/crypto/includes/',
324+
'ngtcp2/third-party/urlparse/',
325+
'ngtcp2/third-party/libev/',
326+
'../../nghttp2/lib',
327+
],
328+
'dependencies': [
329+
'ngtcp2',
330+
'nghttp3',
331+
'../openssl/openssl.gyp:openssl',
332+
'../nghttp2/nghttp2.gyp:sfparse',
333+
],
334+
'defines': [
335+
'HAVE_CONFIG_H',
336+
'WITH_EXAMPLE_OSSL',
337+
'EV_STANDALONE=1',
338+
],
339+
'conditions': [
340+
['OS=="mac"', {
341+
'defines': [
342+
'__APPLE_USE_RFC_3542',
343+
]
344+
}],
345+
['OS=="solaris"', {
346+
'defines': [
347+
'IPTOS_ECN_MASK=0x03',
348+
],
349+
'link_settings': {
350+
'libraries': [ '-lsocket', '-lnsl' ],
351+
},
352+
}],
353+
['OS=="win"', {
354+
'defines': [
355+
'WIN32',
356+
'_WINDOWS',
357+
],
358+
'msvs_settings': {
359+
'VCCLCompilerTool': {
360+
'CompileAs': '1'
361+
},
362+
},
363+
}],
364+
['OS!="win"', {
365+
'defines': [
366+
'HAVE_UNISTD_H',
367+
'HAVE_ARPA_INET_H',
368+
'HAVE_NETINET_IN_H',
369+
'HAVE_NETINET_IP_H',
370+
],
371+
}],
372+
[ 'OS=="linux" or OS=="openharmony"', {
373+
'link_settings': {
374+
'libraries': [ '-ldl', '-lrt' ],
375+
},
376+
}],
377+
],
378+
'sources': [
379+
'<@(ngtcp2_test_client_sources)'
380+
]
230381
}
231382
]
232383
}

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.