From: Michael Tremer Date: Sun, 30 Jul 2017 17:00:42 +0000 (+0200) Subject: ipsec: Always make value of AUTH_MODE uppercase X-Git-Tag: 009~95 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ab589039e20f6990b12ce4e6aec4933c04f67afd;p=network.git ipsec: Always make value of AUTH_MODE uppercase Signed-off-by: Michael Tremer --- diff --git a/src/functions/functions.ipsec b/src/functions/functions.ipsec index ee6ac9b1..f4bc7a2e 100644 --- a/src/functions/functions.ipsec +++ b/src/functions/functions.ipsec @@ -26,12 +26,12 @@ IPSEC_CONNECTION_CONFIG_SETTINGS="${IPSEC_CONNECTION_CONFIG_SETTINGS} SECURITY_P # Default values IPSEC_DEFAULT_MODE="tunnel" -IPSEC_DEFAULT_AUTH_MODE="psk" +IPSEC_DEFAULT_AUTH_MODE="PSK" IPSEC_DEFAULT_INACTIVITY_TIMEOUT="0" IPSEC_DEFAULT_SECURITY_POLICY="system" IPSEC_VALID_MODES="gre-transport tunnel vti" -IPSEC_VALID_AUTH_MODES="PSK psk" +IPSEC_VALID_AUTH_MODES="PSK" cli_ipsec() { local action=${1} @@ -322,7 +322,7 @@ ipsec_connection_authentication_mode() { return ${EXIT_ERROR} fi - if ! ipsec_connection_write_config_key "${connection}" "AUTH_MODE" ${mode,,}; then + if ! ipsec_connection_write_config_key "${connection}" "AUTH_MODE" ${mode^^}; then log ERROR "Could not write configuration settings" return ${EXIT_ERROR} fi