Home GnuPG
Diffusion GnuPG 522e6f798db9

gpg: Fix algo string parsing of --quick-addkey.
522e6f798db9Unpublished

Unpublished Commit · Learn More

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

Description

gpg: Fix algo string parsing of --quick-addkey.

* g10/keygen.c (parse_key_parameter_string): Fix handling of PART==1.
(parse_key_parameter_part): Use default key size if only "rsa", "dsa",
or "elg" is given.

The first change is the actual fix. The second change avoids the
error "Invalid Curve" when only "rsa" instead of RSA2048 is given.

Details

Provenance
wernerAuthored on Dec 12 2016, 9:55 AM
Parents
rGd568a1561642: g10: Create keys that expire in simple key generation mode.
Branches
Unknown
Tags
Unknown

Event Timeline

Werner Koch <wk@gnupg.org> committed rG522e6f798db9: gpg: Fix algo string parsing of --quick-addkey. (authored by Werner Koch <wk@gnupg.org>).Dec 12 2016, 10:13 AM