]> git.ipfire.org Git - people/ms/network.git/commitdiff
security-policies: Show description for each cipher instead of handle
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:24:51 +0000 (21:24 +0200)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Jul 2017 19:24:51 +0000 (21:24 +0200)
This is easier and nicer to read

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/functions/functions.vpn-security-policies

index d3453648cccdf0ccbe13cda5a970fdb43dc31506..c1a22e5cd308639390f5f51741d6794d36c89d7c 100644 (file)
@@ -228,7 +228,11 @@ 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:"
-       cli_print_fmt1 2 "${CIPHER}"
+
+       local cipher
+       for cipher in ${CIPHER}; do
+               cli_print_fmt1 2 "${VPN_SUPPORTED_CIPHERS[${cipher}]-${cipher}}"
+       done
        cli_space
 
        cli_print_fmt1 1 "Integrity:"