From c8100fc0faadf8ba35e4df32b4760cc975e3a83d Mon Sep 17 00:00:00 2001 From: Justus Winter Date: Fri, 9 Dec 2016 11:46:49 +0100 Subject: [PATCH] g10: List compression algorithms using human-readable names. * g10/gpg.c (list_config): List all enabled compression algorithms under the key 'compressname'. Signed-off-by: Justus Winter --- g10/gpg.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/g10/gpg.c b/g10/gpg.c index 19a7a41d1..ddb7715e1 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -1757,6 +1757,15 @@ list_config(char *items) any=1; } + if(show_all || ascii_strcasecmp (name, "compressname") == 0) + { + es_printf ("cfg:compressname:"); + print_algo_names (check_compress_algo, + compress_algo_to_string); + es_printf ("\n"); + any=1; + } + if (show_all || !ascii_strcasecmp(name,"ccid-reader-id")) { /* We ignore this for GnuPG 1.4 backward compatibility. */