]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
testing: Converted af-alg to systemd
authorAndreas Steffen <andreas.steffen@strongswan.org>
Wed, 18 Oct 2017 09:45:14 +0000 (11:45 +0200)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 10 Nov 2017 10:49:38 +0000 (11:49 +0100)
testing/tests/af-alg/alg-camellia/hosts/carol/etc/strongswan.conf
testing/tests/af-alg/alg-camellia/hosts/moon/etc/strongswan.conf
testing/tests/af-alg/alg-camellia/posttest.dat
testing/tests/af-alg/alg-camellia/pretest.dat
testing/tests/af-alg/rw-cert/hosts/carol/etc/strongswan.conf
testing/tests/af-alg/rw-cert/hosts/dave/etc/strongswan.conf
testing/tests/af-alg/rw-cert/hosts/moon/etc/strongswan.conf
testing/tests/af-alg/rw-cert/posttest.dat
testing/tests/af-alg/rw-cert/pretest.dat

index 81a85aa065091ce1b503b48ddde330e23404bc5c..5d05001e60ebdf1c30c0a0a724c533daf77f9ba2 100644 (file)
@@ -1,10 +1,18 @@
 # /etc/strongswan.conf - strongSwan configuration file
 
-charon {
+swanctl {
+  load = pem pkcs1 x509 revocation constraints pubkey openssl random 
+}
+
+charon-systemd {
   load = random nonce pem pkcs1 af-alg gmp x509 revocation kernel-netlink curl socket-default updown vici
 
-  start-scripts {
-    creds = /usr/local/sbin/swanctl --load-creds 
-    conns = /usr/local/sbin/swanctl --load-conns
-  } 
+  syslog {
+    daemon {
+      default = 1
+    }
+    auth {
+      default = 0
+    }
+  }
 }
index 81a85aa065091ce1b503b48ddde330e23404bc5c..5d05001e60ebdf1c30c0a0a724c533daf77f9ba2 100644 (file)
@@ -1,10 +1,18 @@
 # /etc/strongswan.conf - strongSwan configuration file
 
-charon {
+swanctl {
+  load = pem pkcs1 x509 revocation constraints pubkey openssl random 
+}
+
+charon-systemd {
   load = random nonce pem pkcs1 af-alg gmp x509 revocation kernel-netlink curl socket-default updown vici
 
-  start-scripts {
-    creds = /usr/local/sbin/swanctl --load-creds 
-    conns = /usr/local/sbin/swanctl --load-conns
-  } 
+  syslog {
+    daemon {
+      default = 1
+    }
+    auth {
+      default = 0
+    }
+  }
 }
index 2fc2bbb75b9d4d27254a0250a2f9e308eb10917e..2b00bea8e9e7d24881de0b9a6fd97fa0a4dd2bf9 100644 (file)
@@ -1,5 +1,5 @@
 carol::swanctl --terminate --ike home
-carol::service charon stop 2> /dev/null
-moon::service charon stop 2> /dev/null
+carol::systemctl stop strongswan-swanctl
+moon::systemctl stop strongswan-swanctl
 moon::iptables-restore < /etc/iptables.flush
 carol::iptables-restore < /etc/iptables.flush
index 41255bccbcb3d9308638c82b87edd6ee4b292e01..dbd1738aecb5a6d1e57dba4aa8005bf446ed53fa 100644 (file)
@@ -1,7 +1,7 @@
 moon::iptables-restore < /etc/iptables.rules
 carol::iptables-restore < /etc/iptables.rules
-moon::service charon start 2> /dev/null
-carol::service charon start 2> /dev/null
+moon::systemctl start strongswan-swanctl
+carol::systemctl start strongswan-swanctl
 moon::expect-connection net 
 carol::expect-connection home
 carol::swanctl --initiate --child home 2> /dev/null
index 3610ac69972b679093413f629a41de4c2ab3868d..ba2f2aade54b345ad80bdcdace13c13d1d0fcd9b 100644 (file)
@@ -1,13 +1,20 @@
 # /etc/strongswan.conf - strongSwan configuration file
 
-charon {
+swanctl {
+  load = pem pkcs1 x509 revocation constraints pubkey openssl random 
+}
+
+charon-systemd {
   load = random nonce test-vectors pem pkcs1 af-alg gmp x509 revocation curl ctr ccm gcm kernel-netlink socket-default updown vici
 
-  start-scripts {
-    creds = /usr/local/sbin/swanctl --load-creds 
-    conns = /usr/local/sbin/swanctl --load-conns
+  syslog {
+    daemon {
+      default = 1
+    }
+    auth {
+      default = 0
+    }
   }
-
   integrity_test = yes
   crypto_test {
     on_add = yes
index afa7afe83ed0a1290bed9314398803d90c6fbcfd..a2a6609945663d07e29d21c7e287f1c787cd8aa2 100644 (file)
@@ -1,13 +1,20 @@
 # /etc/strongswan.conf - strongSwan configuration file
 
-charon {
+swanctl {
+  load = pem pkcs1 x509 revocation constraints pubkey openssl random 
+}
+
+charon-systemd {
   load = random nonce test-vectors aes des sha1 sha2 md5 pem pkcs1 gmp x509 revocation curl hmac xcbc ctr ccm gcm kernel-netlink socket-default updown vici
 
-  start-scripts {
-    creds = /usr/local/sbin/swanctl --load-creds 
-    conns = /usr/local/sbin/swanctl --load-conns
+   syslog {
+    daemon {
+      default = 1
+    }
+    auth {
+      default = 0
+    }
   }
-
   integrity_test = yes
   crypto_test {
     on_add = yes
index 3610ac69972b679093413f629a41de4c2ab3868d..ba2f2aade54b345ad80bdcdace13c13d1d0fcd9b 100644 (file)
@@ -1,13 +1,20 @@
 # /etc/strongswan.conf - strongSwan configuration file
 
-charon {
+swanctl {
+  load = pem pkcs1 x509 revocation constraints pubkey openssl random 
+}
+
+charon-systemd {
   load = random nonce test-vectors pem pkcs1 af-alg gmp x509 revocation curl ctr ccm gcm kernel-netlink socket-default updown vici
 
-  start-scripts {
-    creds = /usr/local/sbin/swanctl --load-creds 
-    conns = /usr/local/sbin/swanctl --load-conns
+  syslog {
+    daemon {
+      default = 1
+    }
+    auth {
+      default = 0
+    }
   }
-
   integrity_test = yes
   crypto_test {
     on_add = yes
index d7107ccc6e40d4f7645fe85456e5f9a925c1e17d..b909ac76c38a7912057c65aac7b26952d92b52ad 100644 (file)
@@ -1,8 +1,8 @@
 carol::swanctl --terminate --ike home
 dave::swanctl --terminate --ike home
-carol::service charon stop 2> /dev/null
-dave::service charon stop 2> /dev/null
-moon::service charon stop 2> /dev/null
+carol::systemctl stop strongswan-swanctl
+dave::systemctl stop strongswan-swanctl
+moon::systemctl stop strongswan-swanctl
 moon::iptables-restore < /etc/iptables.flush
 carol::iptables-restore < /etc/iptables.flush
 dave::iptables-restore < /etc/iptables.flush
index 7652f460e6e724b17daa54f3a19887a25fbed273..664cc9447afc4dd0f23b32b903972d6a6da98006 100644 (file)
@@ -1,9 +1,9 @@
 moon::iptables-restore < /etc/iptables.rules
 carol::iptables-restore < /etc/iptables.rules
 dave::iptables-restore < /etc/iptables.rules
-moon::service charon start 2> /dev/null
-carol::service charon start 2> /dev/null
-dave::service charon start 2> /dev/null
+moon::systemctl start strongswan-swanctl
+carol::systemctl start strongswan-swanctl
+dave::systemctl start strongswan-swanctl
 moon::expect-connection net 
 carol::expect-connection home 
 carol::swanctl --initiate --child home 2> /dev/null