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
This commit is contained in:
Kenjiro Nakayama
2025-07-30 07:11:36 +09:00
parent 7218171381
commit 5bcf54058d

View File

@@ -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