mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-02 22:46:30 +02:00
gpg: Simplify command --gen-key and add --full-gen-key.
* g10/gpg.c (aFullKeygen): New. (opts): Add command --full-key-gen. (main): Implement it. * g10/keygen.c (DEFAULT_STD_ALGO): Replace wrong GCRY_PK_RSA although the value is identical. (DEFAULT_STD_CURVE): New. (DEFAULT_STD_SUBALGO): New. (DEFAULT_STD_SUBKEYSIZE): New. (DEFAULT_STD_SUBCURVE): New. (quick_generate_keypair): Use new macros here. (generate_keypair): Add arg "full" and fix call callers. Do not ask for keysize in non-full node. (ask_user_id): Add arg "full" and simplify for non-full mode.
This commit is contained in:
parent
f16e76cfb8
commit
f3625bb018
5 changed files with 97 additions and 36 deletions
|
@ -1440,7 +1440,7 @@ generate_card_keys (ctrl_t ctrl)
|
|||
the serialnumber and thus it won't harm. */
|
||||
}
|
||||
|
||||
generate_keypair (ctrl, NULL, info.serialno, want_backup);
|
||||
generate_keypair (ctrl, 1, NULL, info.serialno, want_backup);
|
||||
|
||||
leave:
|
||||
agent_release_card_info (&info);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue