From ab589039e20f6990b12ce4e6aec4933c04f67afd Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Sun, 30 Jul 2017 19:00:42 +0200 Subject: [PATCH] ipsec: Always make value of AUTH_MODE uppercase Signed-off-by: Michael Tremer --- src/functions/functions.ipsec | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 -- 2.39.2