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 — Auto-port 5.0: Update quiche to 0.29.2 (#17401) · netty/netty@24e051e

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • codec-native-quic
    • pom.xml
    • src/main/c
      • netty_quic_quiche.c
  • docker
    • Dockerfile.al2023
    • Dockerfile.centos7
    • Dockerfile.cross_compile_aarch64
    • Dockerfile.ubi9
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎codec-native-quic/pom.xml‎

Copy file name to clipboardExpand all lines: codec-native-quic/pom.xml
+30-8Lines changed: 30 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,21 @@
4949
<boringsslHomeBuildDir>${boringsslHomeDir}/build</boringsslHomeBuildDir>
5050
<boringsslHomeIncludeDir>${boringsslHomeDir}/include</boringsslHomeIncludeDir>
5151
<boringsslRepository>https://boringssl.googlesource.com/boringssl</boringsslRepository>
52-
<!-- Lets use what we use in netty-tcnative-boringssl-static -->
52+
<!-- Lets use what we use in netty-tcnative-boringssl-static. Bumped forward from
53+
0226f30467f540a3f62ef48d453f93927da199b6 (2025-09-07) to d03dbc3e5d7de44183ff17018af22323af650fbc
54+
(2026-05-12): boring 5.x (see quicheBoringVersionReplacement below) unconditionally calls
55+
SSL_get_signature_algorithm_used, which BoringSSL only added upstream on 2026-05-12. -->
5356
<boringsslBranch>main</boringsslBranch>
54-
<boringsslCommitSha>0226f30467f540a3f62ef48d453f93927da199b6</boringsslCommitSha>
57+
<boringsslCommitSha>d03dbc3e5d7de44183ff17018af22323af650fbc</boringsslCommitSha>
58+
<!-- quiche's Cargo.toml pins "boring = { version = \"4.3\" }", but boring 4.x's Rust source
59+
hard-codes references to a handful of BoringSSL symbols (e.g. the old SslCurve API, and
60+
a cloudflare-only unconditional Raw Public Key patch) that don't exist in a recent/vanilla
61+
BoringSSL checkout like the one we build above. boring 5.x removed the SslCurve API and
62+
reworked RPK support to use upstream's own SSL_CREDENTIAL API (feature-gated), so it
63+
builds cleanly against our BoringSSL revision. We patch quiche's requirement up to "5"
64+
below rather than pin BoringSSL to boring-sys's old vendored (2023) revision. -->
65+
<quicheBoringVersionReq>boring = { version = "4.3" }</quicheBoringVersionReq>
66+
<quicheBoringVersionReplacement>boring = { version = "5" }</quicheBoringVersionReplacement>
5567

5668
<quicheSourceDir>${project.build.directory}/quiche-source</quicheSourceDir>
5769
<quicheBuildDir>${quicheSourceDir}/target/release</quicheBuildDir>
@@ -60,7 +72,7 @@
6072
<quicheHomeIncludeDir>${quicheHomeDir}/quiche/include</quicheHomeIncludeDir>
6173
<quicheRepository>https://github.com/cloudflare/quiche</quicheRepository>
6274
<quicheBranch>master</quicheBranch>
63-
<quicheCommitSha>4f347477006bf7f928335d28f05056013f70b87e</quicheCommitSha>
75+
<quicheCommitSha>55886df3be579579207104c8e645825b6347a209</quicheCommitSha>
6476
<generatedSourcesDir>${project.build.directory}/generated-sources</generatedSourcesDir>
6577
<templateDir>${project.build.directory}/template</templateDir>
6678
<cargoTarget />
@@ -843,6 +855,11 @@
843855
</exec>
844856
</else>
845857
</if>
858+
859+
<!-- See the comment next to quicheBoringVersionReq above: bump quiche's pinned
860+
"boring" dependency so it builds against our BoringSSL revision. -->
861+
<replace file="${quicheSourceDir}/Cargo.toml" token="${quicheBoringVersionReq}" value="${quicheBoringVersionReplacement}" summary="true" />
862+
846863
<echo message="Building Quiche" />
847864
<if>
848865
<equals arg1="${platform}" arg2="android" />
@@ -851,7 +868,8 @@
851868
<arg line="ndk ${cargoTarget} --platform ${androidNdkVersion} -- build -p quiche --features &quot;ffi qlog custom-client-dcid&quot; --release" />
852869
<env key="CFLAGS" value="${extraCflags}" />
853870
<env key="CXXFLAGS" value="${extraCxxflags}" />
854-
<env key="QUICHE_BSSL_PATH" value="${boringsslHomeDir}/" />
871+
<env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" />
872+
<env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" />
855873
</exec>
856874
</then>
857875
<else>
@@ -864,7 +882,8 @@
864882
<!-- See https://github.com/cloudflare/quiche/blob/0.7.0/src/build.rs#L73 -->
865883
<env key="DEBUG" value="true" />
866884
<env key="OPT_LEVEL" value="3" />
867-
<env key="QUICHE_BSSL_PATH" value="${boringsslHomeDir}/" />
885+
<env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" />
886+
<env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" />
868887
</exec>
869888
</then>
870889
<elseif>
@@ -873,7 +892,8 @@
873892
<exec executable="cargo" failonerror="true" dir="${quicheSourceDir}" resolveexecutable="true">
874893
<arg line="build -p quiche --features &quot;ffi qlog custom-client-dcid&quot; --release" />
875894
<arg value="${cargoTarget}" />
876-
<env key="QUICHE_BSSL_PATH" value="${boringsslHomeDir}/" />
895+
<env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" />
896+
<env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" />
877897
<!-- Lets enable frame-pointers so we can profile better -->
878898
<env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" />
879899
<env key="TARGET_CC" value="aarch64-none-linux-gnu-gcc" />
@@ -888,7 +908,8 @@
888908
<env key="CFLAGS" value="${extraCflags}" />
889909
<env key="CXXFLAGS" value="${extraCxxflags}" />
890910
<arg value="${cargoTarget}" />
891-
<env key="QUICHE_BSSL_PATH" value="${boringsslHomeDir}/" />
911+
<env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" />
912+
<env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" />
892913
<!-- Lets enable frame-pointers so we can profile better -->
893914
<env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" />
894915
<env key="MACOSX_DEPLOYMENT_TARGET" value="${macosxDeploymentTarget}" />
@@ -900,7 +921,8 @@
900921
<arg line="build -p quiche --features &quot;ffi qlog custom-client-dcid&quot; --release" />
901922
<env key="CFLAGS" value="${extraCflags}" />
902923
<env key="CXXFLAGS" value="${extraCxxflags}" />
903-
<env key="QUICHE_BSSL_PATH" value="${boringsslHomeDir}/" />
924+
<env key="BORING_BSSL_PATH" value="${boringsslHomeBuildDir}" />
925+
<env key="BORING_BSSL_INCLUDE_PATH" value="${boringsslHomeIncludeDir}" />
904926
<!-- Lets enable frame-pointers so we can profile better -->
905927
<env key="RUSTFLAGS" value="-Cforce-frame-pointers=yes" />
906928
<env key="MACOSX_DEPLOYMENT_TARGET" value="${macosxDeploymentTarget}" />
Collapse file

‎codec-native-quic/src/main/c/netty_quic_quiche.c‎

Copy file name to clipboardExpand all lines: codec-native-quic/src/main/c/netty_quic_quiche.c
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -716,11 +716,14 @@ static jlong netty_quiche_conn_new_scid(JNIEnv* env, jclass clazz, jlong conn, j
716716
static jbyteArray netty_quiche_conn_retired_scid_next(JNIEnv* env, jclass clazz, jlong conn) {
717717
const uint8_t *id = NULL;
718718
size_t len = 0;
719+
jbyteArray array = NULL;
719720

720-
if (quiche_conn_retired_scid_next((quiche_conn *) conn, &id, &len)) {
721-
return to_byte_array(env, id, len);
721+
quiche_connection_id_iter* itr = quiche_conn_retired_scid_iter((quiche_conn *) conn);
722+
if (quiche_connection_id_iter_next(itr, &id, &len)) {
723+
array = to_byte_array(env, id, len);
722724
}
723-
return NULL;
725+
quiche_connection_id_iter_free(itr);
726+
return array;
724727
}
725728

726729
static jlong netty_quiche_conn_path_event_next(JNIEnv* env, jclass clazz, jlong conn) {
Collapse file

‎docker/Dockerfile.al2023‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.al2023
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ RUN dnf install -yq \
1313
autoconf \
1414
automake \
1515
bzip2 \
16+
clang \
1617
cmake \
1718
gcc \
1819
gcc-c++ \
Collapse file

‎docker/Dockerfile.centos7‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.centos7
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ RUN wget -q https://github.com/ninja-build/ninja/releases/download/v$NINJA_VERSI
5757
RUN wget -q https://go.dev/dl/go$GO_VERSION.linux-amd64.tar.gz && tar zxf go$GO_VERSION.linux-amd64.tar.gz && mv go /opt/ && echo 'PATH=/opt/go/bin:$PATH' >> ~/.bashrc && echo 'export GOROOT=/opt/go/' >> ~/.bashrc
5858
RUN curl -s https://cmake.org/files/v$CMAKE_VERSION_BASE/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz --output cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && tar zxf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && mv cmake-$CMAKE_VERSION-linux-x86_64 /opt/ && echo 'PATH=/opt/cmake-$CMAKE_VERSION-linux-x86_64/bin:$PATH' >> ~/.bashrc
5959

60+
# Add pre-build clang so we can compile quiche.
61+
RUN wget -q https://github.com/netty/netty/releases/download/netty-clang-bin/centos-7-clang-18.1.8-bin.tar.xz && tar xf centos-7-clang-18.1.8-bin.tar.xz && mv clang-18.1.8 /opt/ && echo 'PATH=/opt/cclang-18.1.8/bin:$PATH' >> ~/.bashrc && echo 'export LIBCLANG_PATH=/opt/clang-18.1.8/lib' >> ~/.bashrc && echo 'export BINDGEN_EXTRA_CLANG_ARGS="-I /opt/clang-18.1.8/lib/clang/18/include/"' >> ~/.bashrc
62+
6063
# Build OpenSSL 3.x from source using devtoolset-11
6164
RUN set -x && \
6265
source /opt/rh/devtoolset-11/enable && \
Collapse file

‎docker/Dockerfile.cross_compile_aarch64‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.cross_compile_aarch64
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ ENV PATH="/opt/gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu/bin:${PATH}"
3737
# Install CMake
3838
RUN curl -s https://cmake.org/files/v$CMAKE_VERSION_BASE/cmake-$CMAKE_VERSION-linux-x86_64.tar.gz --output cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && tar zxf cmake-$CMAKE_VERSION-linux-x86_64.tar.gz && mv cmake-$CMAKE_VERSION-linux-x86_64 /opt/ && echo 'PATH=/opt/cmake-$CMAKE_VERSION-linux-x86_64/bin:$PATH' >> ~/.bashrc
3939

40+
# Add pre-build clang so we can compile quiche.
41+
RUN wget -q https://github.com/netty/netty/releases/download/netty-clang-bin/centos-7-clang-18.1.8-bin.tar.xz && tar xf centos-7-clang-18.1.8-bin.tar.xz && mv clang-18.1.8 /opt/ && echo 'PATH=/opt/cclang-18.1.8/bin:$PATH' >> ~/.bashrc && echo 'export LIBCLANG_PATH=/opt/clang-18.1.8/lib' >> ~/.bashrc && echo 'export BINDGEN_EXTRA_CLANG_ARGS="-I /opt/clang-18.1.8/lib/clang/18/include/ --sysroot=/opt/gcc-arm-$GCC_VERSION-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc"' >> ~/.bashrc
42+
4043
# install rust and setup PATH and install correct toolchain
4144
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y
4245
ENV PATH="$HOME/.cargo/bin:${PATH}"
Collapse file

‎docker/Dockerfile.ubi9‎

Copy file name to clipboardExpand all lines: docker/Dockerfile.ubi9
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ RUN microdnf install -y \
44
apr-devel \
55
autoconf \
66
automake \
7+
clang \
78
cmake \
89
g++ \
910
gcc \

0 commit comments

Comments
0 (0)
You are visitor 01402775 — 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.