security/yara/main: neuter some compat shims that break with the recent
LibreSSL bump, most of which were unnecessary since LibreSSL 2.7
This commit is contained in:
parent
69d5bcb419
commit
798c270b3f
@ -1,8 +1,9 @@
|
||||
# $OpenBSD: Makefile,v 1.5 2019/05/20 04:47:01 naddy Exp $
|
||||
# $OpenBSD: Makefile,v 1.6 2021/10/31 17:30:40 tb Exp $
|
||||
|
||||
COMMENT = pattern matching swiss knife
|
||||
|
||||
DISTNAME = yara-${VERSION}
|
||||
REVISION = 0
|
||||
|
||||
GH_PROJECT = yara
|
||||
|
||||
|
14
security/yara/main/patches/patch-libyara_modules_pe_c
Normal file
14
security/yara/main/patches/patch-libyara_modules_pe_c
Normal file
@ -0,0 +1,14 @@
|
||||
$OpenBSD: patch-libyara_modules_pe_c,v 1.3 2021/10/31 17:30:40 tb Exp $
|
||||
|
||||
Index: libyara/modules/pe.c
|
||||
--- libyara/modules/pe.c.orig
|
||||
+++ libyara/modules/pe.c
|
||||
@@ -38,7 +38,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH D
|
||||
#include <openssl/bio.h>
|
||||
#include <openssl/pkcs7.h>
|
||||
#include <openssl/x509.h>
|
||||
-#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
|
||||
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
||||
#define X509_get_signature_nid(o) OBJ_obj2nid((o)->sig_alg->algorithm)
|
||||
#define X509_getm_notBefore X509_get_notBefore
|
||||
#define X509_getm_notAfter X509_get_notAfter
|
Loading…
x
Reference in New Issue
Block a user