[Pkg-gnupg-commit] [gpgme] 366/412: core: Fix setting og the verification result.
Daniel Kahn Gillmor
dkg at fifthhorseman.net
Thu Sep 22 21:27:21 UTC 2016
This is an automated email from the git hooks/post-receive script.
dkg pushed a commit to branch master
in repository gpgme.
commit 1f9641dd0fb08e4a3df3b507b974a3f78887920f
Author: Werner Koch <wk at gnupg.org>
Date: Fri Sep 16 11:43:32 2016 +0200
core: Fix setting og the verification result.
* src/verify.c (parse_new_sig): Proberly handle the RC in an ERRSIG
status.
Signed-off-by: Werner Koch <wk at gnupg.org>
---
src/verify.c | 19 ++-----------------
1 file changed, 2 insertions(+), 17 deletions(-)
diff --git a/src/verify.c b/src/verify.c
index 6bdbe66..eb1cc10 100644
--- a/src/verify.c
+++ b/src/verify.c
@@ -366,25 +366,10 @@ parse_new_sig (op_data_t opd, gpgme_status_code_t code, char *args,
end++;
/* Parse the return code. */
- if (end[0] && (!end[1] || end[1] == ' '))
- {
- switch (end[0])
- {
- case '4':
- sig->status = gpg_error (GPG_ERR_UNSUPPORTED_ALGORITHM);
- break;
-
- case '9':
- sig->status = gpg_error (GPG_ERR_NO_PUBKEY);
- break;
-
- default:
- sig->status = gpg_error (GPG_ERR_GENERAL);
- }
- }
- else
+ if (!*end)
goto parse_err_sig_fail;
+ sig->status = strtoul (end, NULL, 10);
goto parse_err_sig_ok;
parse_err_sig_fail:
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-gnupg/gpgme.git
More information about the Pkg-gnupg-commit
mailing list