From 522e6f798db9f3f3a9e0123fdc389a86ac69dedf Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 12 Dec 2016 09:55:48 +0100 Subject: 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 --- g10/parse-packet.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g10/parse-packet.c') 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. -- cgit v1.2.3