Home GnuPG
Diffusion GnuPG f3625bb018fa

gpg: Simplify command --gen-key and add --full-gen-key.
f3625bb018faUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
wernerAuthored on Sep 27 2014, 3:14 PM
Parents
rGf16e76cfb8a1: doc: Update the file OpenPGP
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rGf3625bb018fa: gpg: Simplify command --gen-key and add --full-gen-key. (authored by Werner Koch <wk@gnupg.org>).Sep 27 2014, 3:14 PM