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@gnupg.org>
This commit is contained in:
parent
ed1f2700a7
commit
1f9641dd0f
19
src/verify.c
19
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:
|
||||
|
Loading…
Reference in New Issue
Block a user