]> git.ipfire.org Git - people/ms/network.git/blobdiff - src/functions/functions.vpn-security-policies
Makefile: Fix typo in localstatedir
[people/ms/network.git] / src / functions / functions.vpn-security-policies
index dc0f164e5590dfa3b4a34b4bf717c3f7c6ebd427..138e8210e12096dc696ba3c47287dac2acf330fe 100644 (file)
@@ -263,6 +263,9 @@ declare -A VPN_SUPPORTED_GROUP_TYPES=(
 
        # Curve25519
        [CURVE25519]="256 bit Elliptic Curve 25519"
+
+       # Curve448
+       [CURVE448]="224 bit Elliptic Curve 448"
 )
 
 declare -A GROUP_TYPE_TO_STRONGSWAN=(
@@ -289,8 +292,9 @@ declare -A GROUP_TYPE_TO_STRONGSWAN=(
        [ECP384BP]="ecp384bp"
        [ECP512BP]="ecp512bp"
 
-       # Curve25519
+       # More Curves
        [CURVE25519]="curve25519"
+       [CURVE448]="curve448"
 )
 
 cli_vpn_security_policies() {
@@ -1219,7 +1223,7 @@ _vpn_security_policies_make_ike_proposal() {
        local proposals
 
        local cipher
-       for cipher in ${CIPHER}; do
+       for cipher in ${CIPHERS}; do
                # Translate cipher
                local _cipher=${CIPHER_TO_STRONGSWAN[${cipher}]}
 
@@ -1239,7 +1243,7 @@ _vpn_security_policies_make_ike_proposal() {
                                fi
 
                                local group_type
-                               for group_type in ${GROUP_TYPE}; do
+                               for group_type in ${GROUP_TYPES}; do
                                        local _group_type=${GROUP_TYPE_TO_STRONGSWAN[${group_type}]}
 
                                        if ! isset _group_type; then
@@ -1262,7 +1266,7 @@ _vpn_security_policies_make_ike_proposal() {
                                fi
 
                                local group_type
-                               for group_type in ${GROUP_TYPE}; do
+                               for group_type in ${GROUP_TYPES}; do
                                        local _group_type=${GROUP_TYPE_TO_STRONGSWAN[${group_type}]}
 
                                        if ! isset _group_type; then
@@ -1320,7 +1324,7 @@ _vpn_security_policies_make_esp_proposal() {
        local proposals
 
        local cipher
-       for cipher in ${CIPHER}; do
+       for cipher in ${CIPHERS}; do
                # Translate cipher
                local _cipher=${CIPHER_TO_STRONGSWAN[${cipher}]}
 
@@ -1331,7 +1335,7 @@ _vpn_security_policies_make_esp_proposal() {
 
                if vpn_security_policies_cipher_is_aead ${cipher}; then
                        local group_type
-                       for group_type in ${GROUP_TYPE}; do
+                       for group_type in ${GROUP_TYPES}; do
                                local _group_type=${GROUP_TYPE_TO_STRONGSWAN[${group_type}]}
 
                                if ! isset _group_type; then
@@ -1353,7 +1357,7 @@ _vpn_security_policies_make_esp_proposal() {
                                fi
 
                                local group_type
-                               for group_type in ${GROUP_TYPE}; do
+                               for group_type in ${GROUP_TYPES}; do
                                        local _group_type=${GROUP_TYPE_TO_STRONGSWAN[${group_type}]}
 
                                        if ! isset _group_type; then