Skip to content

Commit

Permalink
lang/ruby27: Fix build with LibreSSL 3.5
Browse files Browse the repository at this point in the history
PR:		264003
  • Loading branch information
Sp1l authored and sunpoet committed Jun 3, 2022
1 parent 88027bf commit 8166f5f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions 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);

0 comments on commit 8166f5f

Please sign in to comment.