git: 2d5a6c79aef7 - main - lang/ruby30: Fix build with LibreSSL 3.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jun 2022 23:41:29 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=2d5a6c79aef7d9af240ca2a509006688c7e7878d
commit 2d5a6c79aef7d9af240ca2a509006688c7e7878d
Author: Bernard Spil <brnrd@freebsd.org>
AuthorDate: 2022-06-03 23:24:28 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-06-03 23:36:59 +0000
lang/ruby30: Fix build with LibreSSL 3.5
PR: 264003
---
lang/ruby30/files/patch-libressl | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/lang/ruby30/files/patch-libressl b/lang/ruby30/files/patch-libressl
new file mode 100644
index 000000000000..df9a9b8ee04f
--- /dev/null
+++ b/lang/ruby30/files/patch-libressl
@@ -0,0 +1,11 @@
+--- ext/openssl/ossl_ocsp.c.orig 2022-04-12 11:48:55 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);