Skip to content

Commit 5bcf540

Browse files
committed
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 #1187
1 parent 7218171 commit 5bcf540

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/rust-openssl.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ jobs:
3434
- name: "Run rust-openssl tests"
3535
run: |
3636
cd rust-openssl
37+
38+
# apply patch - see #1187
39+
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
40+
3741
# instead of erroring use the last supported version
3842
ed -s openssl-sys/build/main.rs <<-EOF
3943
/_ => version_error/-1

0 commit comments

Comments
 (0)