Fix pluto abort
This commit is contained in:
parent
a0645d2d25
commit
a0b83b72c1
31
0002-fix-pluto-abort.patch
Normal file
31
0002-fix-pluto-abort.patch
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
From 4c08ae4152c6dbd9ecc7126c2e32468dcf1a6589 Mon Sep 17 00:00:00 2001
|
||||||
|
From: si-gui <245140120@qq.com>
|
||||||
|
Date: Tue, 15 Sep 2020 20:19:26 +0800
|
||||||
|
Subject: [PATCH] fix libselinux deprecated
|
||||||
|
|
||||||
|
Signed-off-by: si-gui <245140120@qq.com>
|
||||||
|
---
|
||||||
|
programs/pluto/ike_alg_encrypt_nss_gcm_ops.c | 7 +++++++
|
||||||
|
1 file changed, 7 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/programs/pluto/ike_alg_encrypt_nss_gcm_ops.c b/programs/pluto/ike_alg_encrypt_nss_gcm_ops.c
|
||||||
|
index 4352645..4143186 100644
|
||||||
|
--- a/programs/pluto/ike_alg_encrypt_nss_gcm_ops.c
|
||||||
|
+++ b/programs/pluto/ike_alg_encrypt_nss_gcm_ops.c
|
||||||
|
@@ -17,6 +17,13 @@
|
||||||
|
|
||||||
|
#include <libreswan.h>
|
||||||
|
|
||||||
|
+/*
|
||||||
|
+ *Special advise from Bob Relyea - needs to go before any nss include
|
||||||
|
+ *
|
||||||
|
+ */
|
||||||
|
+
|
||||||
|
+#define NSS_PKCS11_2_0_COMPAT 1
|
||||||
|
+
|
||||||
|
#include "lswlog.h"
|
||||||
|
#include "lswnss.h"
|
||||||
|
#include "prmem.h"
|
||||||
|
--
|
||||||
|
2.23.0
|
||||||
|
|
||||||
@ -20,7 +20,7 @@
|
|||||||
|
|
||||||
Name: libreswan
|
Name: libreswan
|
||||||
Version: 3.25
|
Version: 3.25
|
||||||
Release: 9
|
Release: 10
|
||||||
Summary: A free implementation of IPsec & IKE for Linux
|
Summary: A free implementation of IPsec & IKE for Linux
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Url: https://github.com/libreswan/libreswan
|
Url: https://github.com/libreswan/libreswan
|
||||||
@ -31,6 +31,7 @@ Source2: openeuler-libreswan-tmpfiles.conf
|
|||||||
Patch0001: libreswan-3.25-relax-delete.patch
|
Patch0001: libreswan-3.25-relax-delete.patch
|
||||||
Patch0002: libreswan-3.25-unbound-hook.patch
|
Patch0002: libreswan-3.25-unbound-hook.patch
|
||||||
Patch0003: 0001-fix-libselinux-deprecated.patch
|
Patch0003: 0001-fix-libselinux-deprecated.patch
|
||||||
|
Patch0004: 0002-fix-pluto-abort.patch
|
||||||
|
|
||||||
BuildRequires: gcc pkgconfig hostname bison flex systemd-devel nss-devel >= 3.16.1
|
BuildRequires: gcc pkgconfig hostname bison flex systemd-devel nss-devel >= 3.16.1
|
||||||
BuildRequires: nspr-devel pam-devel libevent-devel unbound-devel >= 1.6.0-6 ldns-devel
|
BuildRequires: nspr-devel pam-devel libevent-devel unbound-devel >= 1.6.0-6 ldns-devel
|
||||||
@ -131,6 +132,9 @@ export NSS_DISABLE_HW_GCM=1
|
|||||||
%doc %{_mandir}/*/*
|
%doc %{_mandir}/*/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Sep 15 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 3.25-10
|
||||||
|
- Fix pluto abort
|
||||||
|
|
||||||
* Tue Sep 15 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 3.25-9
|
* Tue Sep 15 2020 Guoshuai Sun <sunguoshuai@huawei.com> - 3.25-9
|
||||||
- Fix libselinux deprecated instead of ignore the Werror
|
- Fix libselinux deprecated instead of ignore the Werror
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user