]> git.pld-linux.org Git - packages/yara.git/commitdiff
- rel 6; fix openssl 1.1.1 build auto/th/yara-3.4.0-6
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 22 Sep 2018 14:53:23 +0000 (16:53 +0200)
committerArkadiusz Miśkiewicz <arekm@maven.pl>
Sat, 22 Sep 2018 14:53:23 +0000 (16:53 +0200)
openssl.patch [new file with mode: 0644]
yara.spec

diff --git a/openssl.patch b/openssl.patch
new file mode 100644 (file)
index 0000000..2e7176d
--- /dev/null
@@ -0,0 +1,11 @@
+--- yara-3.4.0/libyara/modules/pe.c.org        2018-09-22 16:41:31.655766625 +0200
++++ yara-3.4.0/libyara/modules/pe.c    2018-09-22 16:50:38.629314185 +0200
+@@ -1155,7 +1155,7 @@ void pe_parse_certificates(
+           pe->object,
+           "signatures[%i].version", counter);
+-      const char* sig_alg = OBJ_nid2ln(OBJ_obj2nid(cert->sig_alg->algorithm));
++      const char* sig_alg = OBJ_nid2ln(X509_get_signature_nid(cert));
+       set_string(sig_alg, pe->object, "signatures[%i].algorithm", counter);
index b5df1d83954b317552e79314436daaecc988aab9..b70402d48411950e05631e7cd3950078828c17e7 100644 (file)
--- a/yara.spec
+++ b/yara.spec
 Summary:       The pattern matching swiss knife for malware researchers (and everyone else)
 Name:          yara
 Version:       3.4.0
-Release:       5
+Release:       6
 License:       Apache v2.0
 Group:         Libraries
 Source0:       https://github.com/plusvic/yara/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5: b3f9d4e00c1da4d37af05b1f4488255f
 Patch0:                cflags.patch
+Patch1:                openssl.patch
 URL:           http://plusvic.github.io/yara/
 BuildRequires: autoconf
 BuildRequires: automake
@@ -75,6 +76,7 @@ features from your own Python scripts.
 %prep
 %setup -q
 %patch0 -p1
+%patch1 -p1
 
 %build
 %{__aclocal} -I m4
This page took 0.071454 seconds and 4 git commands to generate.