1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-22 08:58:47 +00:00

lang/ruby30: Fix build with LibreSSL 3.5

PR:		264003
This commit is contained in:
Bernard Spil 2022-06-04 07:24:28 +08:00 committed by Po-Chuan Hsieh
parent 8166f5fae0
commit 2d5a6c79ae
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B

View File

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