From ea186540db5b418bc6f6e5ca90337672c9981c88 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Wed, 23 Jul 2014 15:12:43 +0200 Subject: 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. --- g10/misc.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'g10/misc.c') diff --git a/g10/misc.c b/g10/misc.c index e219d7623..0125da4b0 100644 --- a/g10/misc.c +++ b/g10/misc.c @@ -1499,6 +1499,20 @@ is_valid_mailbox (const char *name) } +/* Check whether UID is a valid standard user id of the form + "Heinrich Heine " + and return true if this is the case. */ +int +is_valid_user_id (const char *uid) +{ + if (!uid || !*uid) + return 0; + + return 1; +} + + + /* Similar to access(2), but uses PATH to find the file. */ int path_access(const char *file,int mode) -- cgit v1.2.3