From: "cron2 (Code Review)" Date: Sat, 18 Apr 2026 19:00:15 +0000 In-Reply-To: References: Reply-To: gert@...1296..., arne-openvpn@...1227..., openvpn-devel@lists.sourceforge.net, frank@...2641... Message-ID: <77e39bc812f2478cfc2627b722b54c04c9a1dbee-HTML@...2715...> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Disposition: inline Content-Type: multipart/alternative; boundary="r9vmbU3TGkY="; charset=UTF-8 Subject: [Openvpn-devel] [M] Change in openvpn[master]: GHA: Add OpenSSL 4.0 build List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: plaisthos Cc: flichtenheld , openvpn-devel --r9vmbU3TGkY= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable cron2 has submitted this change. ( http://gerrit.openvpn.net/c/openvpn/+/16= 01?usp=3Demail ) Change subject: GHA: Add OpenSSL 4.0 build ...................................................................... GHA: Add OpenSSL 4.0 build Change-Id: Ic9c993cb8dcfedfd6f99f416c286e0968eb45255 Signed-off-by: Arne Schwabe Acked-by: Frank Lichtenheld Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1601 Message-Id: <20260417110942.16538-1-gert@...1296...> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg36= 648.html Signed-off-by: Gert Doering --- M .github/workflows/build.yaml 1 file changed, 81 insertions(+), 0 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 186662d..365e72a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -390,6 +390,87 @@ - name: make check run: make -j3 check VERBOSE=3D1 + openssl: + strategy: + fail-fast: false + matrix: + os: [ubuntu-24.04] + ssllib: [openssl] + build: [ normal, asan ] + configureflags: ["--with-openssl-engine=3Dno"] + include: + - build: asan + cflags: "-fsanitize=3Daddress -fno-sanitize-recover=3Dall -fn= o-optimize-sibling-calls -fsanitize-address-use-after-scope -fno-omit-frame= -pointer -g -O1" + ldflags: -fsanitize=3Daddress -fno-sanitize-recover=3Dall + cc: clang + - build: normal + cflags: "-O2 -g" + ldflags: "" + cc: gcc + + name: "${{matrix.cc}} ${{matrix.build}} - ${{matrix.os}} - ${{matrix.s= sllib}} - 4.0" + runs-on: ${{matrix.os}} + env: + CFLAGS: ${{ matrix.cflags }} + LDFLAGS: ${{ matrix.ldflags }} + CC: ${{matrix.cc}} + UBSAN_OPTIONS: print_stacktrace=3D1 + # versioning=3Dsemver-coerced + OPENSSL_REPO: openssl/openssl + OPENSSL_VERSION: openssl-4.0.0-beta1 + OPENSSL_INSTALL: /opt/openssl + + steps: + - name: Install dependencies + run: sudo apt update && sudo apt install -y liblzo2-dev libpam0g-d= ev liblz4-dev linux-libc-dev man2html clang libcmocka-dev python3-docutils = libtool automake autoconf pkg-config libcap-ng-dev libnl-genl-3-dev + - name: Restore OpenSSL 4.0 from cache + uses: actions/cache@...3010... + id: openssl-cache + with: + path: ${{ env.OPENSSL_INSTALL }} + key: ${{ matrix.os }}-openssl-${{matrix.build }}-${{ env.OPENSSL= _VERSION }} + - name: "openssl: checkout" + if: steps.openssl-cache.outputs.cache-hit !=3D 'true' + uses: actions/checkout@...2998... # v6.0.2 + with: + path: openssl + repository: ${{ env.OPENSSL_REPO }} + ref: ${{ env.OPENSSL_VERSION }} + - name: "openssl: configure" + if: steps.openssl-cache.outputs.cache-hit !=3D 'true' + run: ./Configure --prefix=3D${{ env.OPENSSL_INSTALL }} --libdir= =3D${{ env.OPENSSL_INSTALL }}/lib --openssldir=3D${{ env.OPENSSL_INSTALL }}= -g + working-directory: openssl + - name: "openssl: make all" + if: steps.openssl-cache.outputs.cache-hit !=3D 'true' + run: make -j3 + working-directory: openssl + - name: "openssl: make install" + if: steps.openssl-cache.outputs.cache-hit !=3D 'true' + run: sudo make install + working-directory: openssl + - name: "ldconfig" + run: sudo ldconfig + - name: Checkout OpenVPN + uses: actions/checkout@...2998... # v6.0.2 + - name: autoconf + run: autoreconf -fvi + - name: configure + run: | + OPENSSL_CFLAGS=3D"-I${{ env.OPENSSL_INSTALL }}/include" \ + OPENSSL_LIBS=3D"-L${{ env.OPENSSL_INSTALL }}/lib -lssl -lcrypto"= \ + LDFLAGS=3D"-Wl,-rpath=3D${{ env.OPENSSL_INSTALL }}/lib" \ + ./configure --with-crypto-library=3Dopenssl --enable-werror ${{m= atrix.configureflags}} + - name: make all + run: make -j3 + - name: Ensure the build uses Openssl + run: | + ./src/openvpn/openvpn --version + ./src/openvpn/openvpn --version | grep -q "library versions: Ope= nSSL 4.0" + - name: configure checks + run: echo 'RUN_SUDO=3D"sudo -E"' >tests/t_server_null.rc + - name: make check + run: make -j3 check VERBOSE=3D1 + mbedtls4: strategy: fail-fast: false -- To view, visit http://gerrit.openvpn.net/c/openvpn/+/1601?usp=3Demail To unsubscribe, or for help writing mail filters, visit http://gerrit.openv= pn.net/settings?usp=3Demail Gerrit-MessageType: merged Gerrit-Project: openvpn Gerrit-Branch: master Gerrit-Change-Id: Ic9c993cb8dcfedfd6f99f416c286e0968eb45255 Gerrit-Change-Number: 1601 Gerrit-PatchSet: 4 Gerrit-Owner: plaisthos Gerrit-Reviewer: flichtenheld Gerrit-CC: openvpn-devel --r9vmbU3TGkY= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

cron2 sub= mitted this change.

View Change

GHA: Add OpenSSL 4.0 build

Change-Id: Ic9= c993cb8dcfedfd6f99f416c286e0968eb45255
Signed-off-by: Arne Schwabe <a= rne@...1227...>
Acked-by: Frank Lichtenheld <frank@...2641...><= br>Gerrit URL: https://gerrit.openvpn.net/c/openvpn/+/1601
Message-Id: &= lt;20260417110942.16538-1-gert@...1296...>
URL: https://www.mail-arch= ive.com/openvpn-devel@lists.sourceforge.net/msg36648.html
Signed-off-by:= Gert Doering <gert@...1296...>
---
M .github/workflows/build.y= aml
1 file changed, 81 insertions(+), 0 deletions(-)

diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml=

index 186662d..365e72a 100644
--- a/.githu= b/workflows/build.yaml
+++ b/.github/workflows/build.yaml
@@ -390,6 +390,87 @@
- name: make che= ck
run: make -j3 check VERBOSE=3D1

+ openssl:=
+ strategy:
+ fail-fast: false+ matrix:
+ os: [ubuntu-24.04]+ ssllib: [openssl]

+ build: [ norma= l, asan ]
+ co= nfigureflags: ["--with-openssl-engine=3Dno"]
+ include:
+ - build: asan
+ cflags: "-fsanitize= =3Daddress -fno-sanitize-recover=3Dall -fno-optimize-sibling-calls -fsanit= ize-address-use-after-scope -fno-omit-frame-pointer -g -O1"
= + ldflags: -fsanitiz= e=3Daddress -fno-sanitize-recover=3Dall
+ cc: clang
+ - build: normal
+ cflags: "-O2 -g"+ ldflags: "&= quot;
+ cc= : gcc
+
+ name: "${{matrix.cc}} ${= {matrix.build}} - ${{matrix.os}} - ${{matrix.ssllib}} - 4.0"+ runs-on: ${{matrix.os}}
+ env:
+ CFLAGS: ${{ matrix.cflags = }}

+ LDFLAGS: ${= { matrix.ldflags }}
+= CC: ${{matrix.cc}}
+ UBSAN_OPTIONS: print_stacktrace=3D1
+ # versioning=3Dsemver-coerced
+ OPENSSL_REPO: openssl/open= ssl
+ OPENSSL_VE= RSION: openssl-4.0.0-beta1
+ OPENSSL_INSTALL: /opt/openssl
+
+ steps:
+ = - name: Install dependencies
+ run: sudo apt update && sudo apt install -y liblz= o2-dev libpam0g-dev liblz4-dev linux-libc-dev man2html clang libcmocka-dev = python3-docutils libtool automake autoconf pkg-config libcap-ng-dev libnl-g= enl-3-dev
+ - na= me: Restore OpenSSL 4.0 from cache
+ uses: actions/cache@...3010...
+ id: openssl-cache
+ with:
+ path: ${{ env.OPENSSL_INSTALL }= }
+ key: ${{= matrix.os }}-openssl-${{matrix.build }}-${{ env.OPENSSL_VERSION }}<= br>+ - name: "openssl= : checkout"
+ = if: steps.openssl-cache.outputs.cache-hit !=3D 'true'+ uses: actions/checko= ut@...2998... # v6.0.2
+ = path: openssl
= + repository: ${{ env.OPENSSL_REPO }}
+ ref: ${{ env.OPENSSL_VERSION }}=
+ - name: "openss= l: configure"
+ = if: steps.openssl-cache.outputs.cache-hit !=3D 'true'=
+ run: ./Configure = --prefix=3D${{ env.OPENSSL_INSTALL }} --libdir=3D${{ env.OPENSSL_INSTALL }}= /lib --openssldir=3D${{ env.OPENSSL_INSTALL }} -g
+ working-directory: openssl
= + - name: "openssl: m= ake all"
+ = if: steps.openssl-cache.outputs.cache-hit !=3D 'true'
<= span style=3D"color: hsl(120, 100%, 40%);">+ run: make -j3+ working-directory: op= enssl
+ - name: = "openssl: make install"
+ if: steps.openssl-cache.outputs.cache-hit !=3D 't= rue'
+ run= : sudo make install
+= working-directory: openssl
+ - name: "ldconfig"
+ run: sudo ldconfig
+ - name: Checkout OpenVPN<= br>+ uses: actions/check= out@...2998... # v6.0.2
+ - name: autoconf
+ run: autoreconf -fvi
+ - name: configure
+ run: |
+ OPENSSL_CFLAGS=3D"-I${{ env.OPENSSL_INSTALL }= }/include" \
+ = OPENSSL_LIBS=3D"-L${{ env.OPENSSL_INSTALL }}/lib -lssl -lcrypt= o" \
+ = LDFLAGS=3D"-Wl,-rpath=3D${{ env.OPENSSL_INSTALL }}/lib" \<= br>+ ./configure --wit= h-crypto-library=3Dopenssl --enable-werror ${{matrix.configureflags}}

+ - name: make all

+ run: make -j3<= /span>
+ - name: Ensure= the build uses Openssl
+ run: |
+ = ./src/openvpn/openvpn --version
+ ./src/openvpn/openvpn --version | grep -q &q= uot;library versions: OpenSSL 4.0"
+ - name: configure checks
+ run: echo 'RUN_SUDO=3D"sudo= -E"' >tests/t_server_null.rc
+ - name: make check
+ run: make -j3 check VERBOSE=3D1+
mbedtls4= :
strategy:
fail-fast: false

To view, visit change 1601. To unsubscribe, o= r for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: openvpn
Gerrit-Branch: master
Gerrit-Change-Id: Ic9c993cb8dcfedfd6f99f416c28= 6e0968eb45255
Gerrit-Change-Number: 1601
Gerrit-PatchSet: 4
Gerrit-Owner: plaisthos <arne-openvpn@...1711...= 27...>
Gerrit-Reviewer: flichtenheld <frank@...2716...= 1...>
Gerrit-CC: openvpn-devel <openvpn-devel@...1484...= ts.sourceforge.net>
= --r9vmbU3TGkY=--