mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
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.
This commit is contained in:
parent
75127bc456
commit
ea186540db
5 changed files with 171 additions and 3 deletions
14
g10/misc.c
14
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 <heinrichh@duesseldorf.de>"
|
||||
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue