diff options
author | Werner Koch <[email protected]> | 2016-12-12 08:55:48 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2016-12-12 09:13:06 +0000 |
commit | 522e6f798db9f3f3a9e0123fdc389a86ac69dedf (patch) | |
tree | e30a20b46ead3cd0a7de84032855ba84121ed514 /g10/parse-packet.c | |
parent | g10: Create keys that expire in simple key generation mode. (diff) | |
download | gnupg-522e6f798db9f3f3a9e0123fdc389a86ac69dedf.tar.gz gnupg-522e6f798db9f3f3a9e0123fdc389a86ac69dedf.zip |
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: ce29272e24e7b718b8fca9b84bc728e65f3dea24
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'g10/parse-packet.c')
-rw-r--r-- | g10/parse-packet.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/parse-packet.c b/g10/parse-packet.c index 31e2a92d8..7f44ce532 100644 --- a/g10/parse-packet.c +++ b/g10/parse-packet.c @@ -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. |