32 lines
801 B
Diff
32 lines
801 B
Diff
|
|
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
|
||
|
|
|