[packages/libnasl] - up to 2.2.11; needs openssl 1.1 fix
arekm
arekm at pld-linux.org
Sat Sep 22 17:19:20 CEST 2018
commit cf1a5b45e27a3e3d894d553b8f28b60d1a8829a0
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sat Sep 22 17:19:12 2018 +0200
- up to 2.2.11; needs openssl 1.1 fix
libnasl-openssl.patch | 11 +++++++++++
libnasl.spec | 11 +++++++----
2 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/libnasl.spec b/libnasl.spec
index df866ab..f55b5d3 100644
--- a/libnasl.spec
+++ b/libnasl.spec
@@ -1,16 +1,18 @@
Summary: NASL libraries
Summary(pl.UTF-8): Biblioteki NASL
Name: libnasl
-Version: 2.2.7
-Release: 7
+Version: 2.2.11
+Release: 1
License: GPL
Vendor: Nessus Project
Group: Networking
-Source0: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/%{name}-%{version}.tar.gz
-# Source0-md5: 37f6f0db022dad1e218371909de3e8af
+# Source0: ftp://ftp.nessus.org/pub/nessus/nessus-%{version}/src/%{name}-%{version}.tar.gz
+Source0: %{name}-%{version}.tar.gz
+# Source0-md5: 02889e4829b68cb9d0d827ccdba5db1d
Patch0: %{name}-ac_fix.patch
Patch1: %{name}-linkshared.patch
Patch2: %{name}-libtool.patch
+Patch3: libnasl-openssl.patch
URL: http://www.nessus.org/
BuildRequires: autoconf
BuildRequires: automake
@@ -83,6 +85,7 @@ Biblioteki statyczne NASL-a.
%patch0 -p1
%patch1 -p1
%patch2 -p1
+%patch3 -p0
%build
%{__libtoolize}
diff --git a/libnasl-openssl.patch b/libnasl-openssl.patch
new file mode 100644
index 0000000..6b905bf
--- /dev/null
+++ b/libnasl-openssl.patch
@@ -0,0 +1,11 @@
+--- nasl/nasl_crypto2.c.orig 2009-01-12 17:27:38.000000000 +0100
++++ nasl/nasl_crypto2.c 2009-01-12 17:30:53.000000000 +0100
+@@ -644,7 +644,7 @@
+ if (BN_bin2bn((const unsigned char*)s, slen, sig->s) == 0)
+ goto fail;
+
+- if (DSA_do_verify((unsigned char*)data, datalen, sig, dsa))
++ if (DSA_do_verify((unsigned char*)data, datalen, sig, dsa) == 1)
+ retc->x.i_val = 1;
+
+ fail:
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libnasl.git/commitdiff/cf1a5b45e27a3e3d894d553b8f28b60d1a8829a0
More information about the pld-cvs-commit
mailing list