diff options
author | Werner Koch <[email protected]> | 2014-07-23 13:12:43 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2014-07-23 13:12:43 +0000 |
commit | ea186540db5b418bc6f6e5ca90337672c9981c88 (patch) | |
tree | 9ad7ba700ed2261c1443e273907598ed41b0ada7 /g10/main.h | |
parent | common: Add cpr_get_answer_is_yes_def() (diff) | |
download | gnupg-ea186540db5b418bc6f6e5ca90337672c9981c88.tar.gz gnupg-ea186540db5b418bc6f6e5ca90337672c9981c88.zip |
gpg: Add command --quick-gen-key
* g10/gpg.c (aQuickKeygen): New.
* g10/misc.c (is_valid_user_id): New stub.
* g10/keygen.c (quickgen_set_para): New.
(quick_generate_keypair): New.
--
Note that the validation of the specified user id has not yet been
implemented.
Diffstat (limited to 'g10/main.h')
-rw-r--r-- | g10/main.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/g10/main.h b/g10/main.h index d39c7c853..4ec4bbfd0 100644 --- a/g10/main.h +++ b/g10/main.h @@ -154,6 +154,7 @@ int parse_options(char *str,unsigned int *options, struct parse_options *opts,int noisy); int has_invalid_email_chars (const char *s); int is_valid_mailbox (const char *name); +int is_valid_user_id (const char *uid); const char *get_libexecdir (void); int path_access(const char *file,int mode); @@ -247,6 +248,7 @@ void show_basic_key_info (KBNODE keyblock); u32 parse_expire_string(const char *string); u32 ask_expire_interval(int object,const char *def_expire); u32 ask_expiredate(void); +void quick_generate_keypair (const char *uid); void generate_keypair (ctrl_t ctrl, const char *fname, const char *card_serialno, int card_backup_key); int keygen_set_std_prefs (const char *string,int personal); |