From f3098f764b8009ce515d9cd18304cec3ecd27831 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 19 Jul 2017 21:31:09 +0200 Subject: [PATCH] security-policies: Show integrity with description Signed-off-by: Michael Tremer --- src/functions/functions.vpn-security-policies | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/functions/functions.vpn-security-policies b/src/functions/functions.vpn-security-policies index 0c09c0fc..e1302d8e 100644 --- a/src/functions/functions.vpn-security-policies +++ b/src/functions/functions.vpn-security-policies @@ -244,7 +244,6 @@ vpn_security_policies_show() { # This could be done in a loop but a loop is much more complicated # because we print 'Group Types' but the variable is named 'GROUP_TYPES' cli_print_fmt1 1 "Ciphers:" - local cipher for cipher in ${CIPHER}; do cli_print_fmt1 2 "${VPN_SUPPORTED_CIPHERS[${cipher}]-${cipher}}" @@ -252,7 +251,10 @@ vpn_security_policies_show() { cli_space cli_print_fmt1 1 "Integrity:" - cli_print_fmt1 2 "${INTEGRITY}" + local integrity + for integrity in ${INTEGRITY}; do + cli_print_fmt1 2 "${VPN_SUPPORTED_INTEGRITY[${integrity}]-${integrity}}" + done cli_space cli_print_fmt1 1 "Group Types:" -- 2.39.5