aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Spil <brnrd@freebsd.org>2022-06-03 23:24:27 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2022-06-03 23:36:58 +0000
commit8166f5fae0225f1a4119d8cdead7fdf17ca2c50e (patch)
tree8cb2e1288fa131917ea61ee9d076720123e38e03
parent88027bf2f0bafa7e2d75c47876da49c69a27e894 (diff)
downloadports-8166f5fae0225f1a4119d8cdead7fdf17ca2c50e.tar.gz
ports-8166f5fae0225f1a4119d8cdead7fdf17ca2c50e.zip
lang/ruby27: Fix build with LibreSSL 3.5
PR: 264003
-rw-r--r--lang/ruby27/files/patch-libressl11
1 files changed, 11 insertions, 0 deletions
diff --git a/lang/ruby27/files/patch-libressl b/lang/ruby27/files/patch-libressl
new file mode 100644
index 000000000000..adce5095db84
--- /dev/null
+++ b/lang/ruby27/files/patch-libressl
@@ -0,0 +1,11 @@
+--- ext/openssl/ossl_ocsp.c.orig 2022-04-12 11:25:48 UTC
++++ ext/openssl/ossl_ocsp.c
+@@ -1093,7 +1093,7 @@ ossl_ocspbres_verify(int argc, VALUE *argv, VALUE self
+ * exists in LibreSSL 2.1.10, 2.2.9, 2.3.6, 2.4.1.
+ */
+ if (!(flg & (OCSP_NOCHAIN | OCSP_NOVERIFY)) &&
+- sk_X509_num(x509s) && sk_X509_num(bs->certs)) {
++ sk_X509_num(x509s) && sk_X509_num(OCSP_resp_get0_certs(bs))) {
+ int i;
+
+ bs = ASN1_item_dup(ASN1_ITEM_rptr(OCSP_BASICRESP), bs);