1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-09 12:54:23 +01:00

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 <justus@g10code.com>
This commit is contained in:
Justus Winter 2016-12-09 11:46:49 +01:00
parent 3de9bad359
commit c8100fc0fa

View File

@ -1757,6 +1757,15 @@ list_config(char *items)
any=1; 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")) if (show_all || !ascii_strcasecmp(name,"ccid-reader-id"))
{ {
/* We ignore this for GnuPG 1.4 backward compatibility. */ /* We ignore this for GnuPG 1.4 backward compatibility. */