aboutsummaryrefslogtreecommitdiffstats
path: root/g10/main.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2016-12-12 09:50:21 +0000
committerWerner Koch <[email protected]>2016-12-12 09:50:42 +0000
commitf1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1 (patch)
treeeb51d58eb04e9d27233580fb0fec0c9cf59c8935 /g10/main.h
parentgpg: Fix algo string parsing of --quick-addkey. (diff)
downloadgnupg-f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1.tar.gz
gnupg-f1304ee9b21e6ceac6c13d04ceddd23fadb5c7f1.zip
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 <[email protected]>
Diffstat (limited to 'g10/main.h')
-rw-r--r--g10/main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h
index 1822ee473..5ed501b3c 100644
--- a/g10/main.h
+++ b/g10/main.h
@@ -300,6 +300,7 @@ void keyedit_quick_set_expire (ctrl_t ctrl,
void show_basic_key_info (KBNODE keyblock);
/*-- keygen.c --*/
+const char *get_default_pubkey_algo (void);
u32 parse_expire_string(const char *string);
u32 ask_expire_interval(int object,const char *def_expire);
u32 ask_expiredate(void);