git: 577ebf29e83c - main - sysutils/burp: Fix build with LibreSSL 3.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 09:18:44 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=577ebf29e83ccc03484a640864c558c5352fd3fc

commit 577ebf29e83ccc03484a640864c558c5352fd3fc
Author:     Tassilo Philipp <tphilipp@potion-studios.com>
AuthorDate: 2022-12-30 08:55:12 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 09:06:31 +0000

    sysutils/burp: Fix build with LibreSSL 3.5
    
    PR:             267516
---
 sysutils/burp/files/patch-libressl35 | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/sysutils/burp/files/patch-libressl35 b/sysutils/burp/files/patch-libressl35
new file mode 100644
index 000000000000..9c745c39394e
--- /dev/null
+++ b/sysutils/burp/files/patch-libressl35
@@ -0,0 +1,11 @@
+--- src/server/ca.c.orig	2021-05-02 03:15:43 UTC
++++ src/server/ca.c
+@@ -573,7 +573,7 @@ int ca_x509_verify_crl(struct conf **confs,
+ 		revoked=(X509_REVOKED *)
+ 			sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
+ 		if(!ASN1_INTEGER_cmp(
+-#if OPENSSL_VERSION_NUMBER < 0x1010000fL || defined(LIBRESSL_VERSION_NUMBER)
++#if OPENSSL_VERSION_NUMBER < 0x10100000L || (defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x30500000L)
+ 			revoked->serialNumber,
+ #else
+ 			X509_REVOKED_get0_serialNumber(revoked),