[Pkg-gnupg-commit] [gnupg2] 229/292: gpg: Improve error message for --quick-gen-key.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Mon Nov 21 06:31:46 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gnupg2.
commit 088d955bd8a6ec8bbf76c8a4c01eb08499d1d9fa
Author: Werner Koch <wk at gnupg.org>
Date: Thu Nov 10 12:18:33 2016 +0100
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 at gnupg.org>
---
g10/keygen.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/g10/keygen.c b/g10/keygen.c
index e3cf818..b424c98 100644
--- a/g10/keygen.c
+++ b/g10/keygen.c
@@ -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
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gnupg2.git
More information about the Pkg-gnupg-commit
mailing list