mirror of
git://git.gnupg.org/gnupg.git
synced 2025-07-03 22:56:33 +02:00
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.
Fixes-commit: ce29272e24
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
d568a15616
commit
522e6f798d
2 changed files with 19 additions and 10 deletions
|
@ -3050,7 +3050,7 @@ parse_mdc (IOBUF inp, int pkttype, unsigned long pktlen,
|
|||
|
||||
|
||||
/*
|
||||
* This packet is internally generated by us (ibn armor.c) to transfer
|
||||
* This packet is internally generated by us (in armor.c) to transfer
|
||||
* some information to the lower layer. To make sure that this packet
|
||||
* is really a GPG faked one and not one coming from outside, we
|
||||
* first check that there is a unique tag in it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue