git: 8166f5fae022 - main - lang/ruby27: Fix build with LibreSSL 3.5
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 03 Jun 2022 23:41:28 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=8166f5fae0225f1a4119d8cdead7fdf17ca2c50e commit 8166f5fae0225f1a4119d8cdead7fdf17ca2c50e Author: Bernard Spil <brnrd@freebsd.org> AuthorDate: 2022-06-03 23:24:27 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-06-03 23:36:58 +0000 lang/ruby27: Fix build with LibreSSL 3.5 PR: 264003 --- lang/ruby27/files/patch-libressl | 11 +++++++++++ 1 file changed, 11 insertions(+) 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);