From f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Dec 2016 10:50:21 +0100 Subject: gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo. * g10/keygen.c (get_default_pubkey_algo): New. (parse_key_parameter_string): Use it. * g10/gpg.c (gpgconf_list): Take value from new function. -- Note that consumers of that gpgconf-list value may need to be adjusted to that new value. It should anyway only be used to display the default algorithm. Signed-off-by: Werner Koch --- g10/gpg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/gpg.c') diff --git a/g10/gpg.c b/g10/gpg.c index ddb7715e1..c0873877e 100644 --- a/g10/gpg.c +++ b/g10/gpg.c @@ -1832,7 +1832,7 @@ gpgconf_list (const char *configfile) /* The next one is an info only item and should match the macros at the top of keygen.c */ es_printf ("default_pubkey_algo:%lu:\"%s:\n", GC_OPT_FLAG_DEFAULT, - "RSA-2048"); + get_default_pubkey_algo ()); xfree (configfile_esc); } -- cgit