]> git.ipfire.org Git - people/stevee/network.git/commitdiff
security-policies: Show integrity with description
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:31:09 +0000 (21:31 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:31:09 +0000 (21:31 +0200)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.vpn-security-policies

index 0c09c0fc1c904b28565b8b32566ed900a1eacf9b..e1302d8e8f4a636ce64c778b36941281cc6bd717 100644 (file)
@@ -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:"