From 5bcf54058d62ca1f197616ee344d05fbb3e34e21 Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Wed, 30 Jul 2025 07:11:36 +0900 Subject: CI: Apply EVP const_ptr patch for LibreSSL < 4.2.0 In the GitHub Actions workflow for rust-openssl testing, apply the patch used in OpenBSD ports to support EVP_PKEY_get1_* APIs with const_ptr. This ensures that the build succeeds before the official version bump to libressl420. This is a temporary workaround to keep the tests passing until 4.2.0 release. Fix https://github.com/libressl/portable/issues/1187 --- .github/workflows/rust-openssl.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/rust-openssl.yml b/.github/workflows/rust-openssl.yml index 4ff41c0..d3b2bee 100644 --- a/.github/workflows/rust-openssl.yml +++ b/.github/workflows/rust-openssl.yml @@ -34,6 +34,10 @@ jobs: - name: "Run rust-openssl tests" run: | cd rust-openssl + + # apply patch - see #1187 + curl -L https://raw.githubusercontent.com/openbsd/ports/refs/heads/master/security/rust-openssl-tests/patches/patch-openssl-sys_src_handwritten_evp_rs | patch -p0 + # instead of erroring use the last supported version ed -s openssl-sys/build/main.rs <<-EOF /_ => version_error/-1 -- cgit v1.2.3-55-g6feb