aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJustus Winter <[email protected]>2016-12-09 10:46:49 +0000
committerJustus Winter <[email protected]>2016-12-09 12:13:45 +0000
commitc8100fc0faadf8ba35e4df32b4760cc975e3a83d (patch)
tree42584806a6e5949d121dea3dc32a042e0a79281c
parentg10: Fix memory leak. (diff)
downloadgnupg-c8100fc0faadf8ba35e4df32b4760cc975e3a83d.tar.gz
gnupg-c8100fc0faadf8ba35e4df32b4760cc975e3a83d.zip
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 <[email protected]>
-rw-r--r--g10/gpg.c9
1 files changed, 9 insertions, 0 deletions
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. */