gpg: Do not use a fixed string for --gpgconf-list:default_pubkey_algo.
authorWerner Koch <wk@gnupg.org>
Mon, 12 Dec 2016 09:50:21 +0000 (10:50 +0100)
committerWerner Koch <wk@gnupg.org>
Mon, 12 Dec 2016 09:50:42 +0000 (10:50 +0100)
commitf1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1
treeeb51d58eb04e9d27233580fb0fec0c9cf59c8935
parent522e6f798db9f3f3a9e0123fdc389a86ac69dedf
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 <wk@gnupg.org>
g10/gpg.c
g10/keygen.c
g10/main.h