1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-23 21:59:57 +01:00

gpg: Improve error message for --quick-gen-key.

* g10/keygen.c (parse_algo_usage_expire): Use a different error
message for an unknown algorithm name.
--

GnuPG-bug-id: 2832
Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
Werner Koch 2016-11-10 12:18:33 +01:00
parent c7ea98cd3d
commit 088d955bd8
No known key found for this signature in database
GPG Key ID: E3FDFF218E45B72B

View File

@ -4532,7 +4532,7 @@ parse_algo_usage_expire (ctrl_t ctrl, int for_subkey,
use = PUBKEY_USAGE_ENC;
}
else
return gpg_error (GPG_ERR_INV_CURVE);
return gpg_error (GPG_ERR_UNKNOWN_CURVE);
/* Parse the usage string. */
if (!usagestr || !*usagestr