2018-06-02 11:22:27 +02:00
|
|
|
Index: strongswan-5.6.2/src/starter/klips.c
|
|
|
|
===================================================================
|
|
|
|
--- strongswan-5.6.2.orig/src/starter/klips.c 2016-04-22 22:01:35.000000000 +0200
|
|
|
|
+++ strongswan-5.6.2/src/starter/klips.c 2018-04-17 16:53:57.534334655 +0200
|
2012-10-30 18:16:52 +01:00
|
|
|
@@ -30,7 +30,7 @@ bool starter_klips_init(void)
|
2009-07-14 23:56:37 +02:00
|
|
|
/* ipsec module makes the pf_key proc interface visible */
|
|
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
|
|
{
|
|
|
|
- ignore_result(system("modprobe -qv ipsec"));
|
|
|
|
+ ignore_result(system("modprobe -s ipsec"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* now test again */
|
2012-10-30 18:16:52 +01:00
|
|
|
@@ -42,9 +42,9 @@ bool starter_klips_init(void)
|
2009-07-14 23:56:37 +02:00
|
|
|
}
|
2010-03-05 11:51:28 +01:00
|
|
|
|
2009-07-14 23:56:37 +02:00
|
|
|
/* load crypto algorithm modules */
|
|
|
|
- ignore_result(system("modprobe -qv ipsec_aes"));
|
|
|
|
- ignore_result(system("modprobe -qv ipsec_blowfish"));
|
|
|
|
- ignore_result(system("modprobe -qv ipsec_sha2"));
|
|
|
|
+ ignore_result(system("modprobe -s ipsec_aes"));
|
|
|
|
+ ignore_result(system("modprobe -s ipsec_blowfish"));
|
|
|
|
+ ignore_result(system("modprobe -s ipsec_sha2"));
|
|
|
|
|
2012-10-30 18:16:52 +01:00
|
|
|
DBG2(DBG_APP, "found KLIPS IPsec stack");
|
|
|
|
return TRUE;
|
2018-06-02 11:22:27 +02:00
|
|
|
Index: strongswan-5.6.2/src/starter/netkey.c
|
|
|
|
===================================================================
|
|
|
|
--- strongswan-5.6.2.orig/src/starter/netkey.c 2016-04-22 22:01:35.000000000 +0200
|
|
|
|
+++ strongswan-5.6.2/src/starter/netkey.c 2018-04-17 16:53:57.534334655 +0200
|
|
|
|
@@ -30,7 +30,7 @@ bool starter_netkey_init(void)
|
2009-07-14 23:56:37 +02:00
|
|
|
/* af_key module makes the netkey proc interface visible */
|
|
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
|
|
{
|
|
|
|
- ignore_result(system("modprobe -qv af_key"));
|
|
|
|
+ ignore_result(system("modprobe -s af_key"));
|
|
|
|
}
|
|
|
|
|
|
|
|
/* now test again */
|
2018-06-02 11:22:27 +02:00
|
|
|
@@ -44,11 +44,11 @@ bool starter_netkey_init(void)
|
2009-07-14 23:56:37 +02:00
|
|
|
/* make sure that all required IPsec modules are loaded */
|
|
|
|
if (stat(PROC_MODULES, &stb) == 0)
|
|
|
|
{
|
|
|
|
- ignore_result(system("modprobe -qv ah4"));
|
|
|
|
- ignore_result(system("modprobe -qv esp4"));
|
|
|
|
- ignore_result(system("modprobe -qv ipcomp"));
|
|
|
|
- ignore_result(system("modprobe -qv xfrm4_tunnel"));
|
|
|
|
- ignore_result(system("modprobe -qv xfrm_user"));
|
|
|
|
+ ignore_result(system("modprobe -s ah4"));
|
|
|
|
+ ignore_result(system("modprobe -s esp4"));
|
|
|
|
+ ignore_result(system("modprobe -s ipcomp"));
|
|
|
|
+ ignore_result(system("modprobe -s xfrm4_tunnel"));
|
|
|
|
+ ignore_result(system("modprobe -s xfrm_user"));
|
|
|
|
}
|
|
|
|
|
2012-10-30 18:16:52 +01:00
|
|
|
DBG2(DBG_APP, "found netkey IPsec stack");
|