2004-05-21 Marcus Brinkmann <marcus@g10code.de>
* verify.c (parse_error): Do not skip location of where token.
This commit is contained in:
parent
d37c56aca0
commit
17c7de32c3
@ -1,5 +1,7 @@
|
|||||||
2004-05-21 Marcus Brinkmann <marcus@g10code.de>
|
2004-05-21 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* verify.c (parse_error): Do not skip location of where token.
|
||||||
|
|
||||||
* gpgme.h (gpgme_status_code_t): Add GPGME_STATUS_REVKEYSIG.
|
* gpgme.h (gpgme_status_code_t): Add GPGME_STATUS_REVKEYSIG.
|
||||||
* verify.c (_gpgme_verify_status_handler): Add handling of
|
* verify.c (_gpgme_verify_status_handler): Add handling of
|
||||||
GPGME_STATUS_REVKEYSIG.
|
GPGME_STATUS_REVKEYSIG.
|
||||||
|
@ -488,16 +488,11 @@ parse_error (gpgme_signature_t sig, char *args)
|
|||||||
else
|
else
|
||||||
return gpg_error (GPG_ERR_INV_ENGINE);
|
return gpg_error (GPG_ERR_INV_ENGINE);
|
||||||
|
|
||||||
/* It is often useful to compare only the last part of the where token. */
|
|
||||||
where_last = strrchr (where, '.');
|
|
||||||
if (!where_last)
|
|
||||||
where_last = where;
|
|
||||||
|
|
||||||
err = _gpgme_map_gnupg_error (which);
|
err = _gpgme_map_gnupg_error (which);
|
||||||
|
|
||||||
if (!strcmp (where_last, ".findkey"))
|
if (!strcmp (where, "verify.findkey"))
|
||||||
sig->status = err;
|
sig->status = err;
|
||||||
else if (!strcmp (where_last, ".keyusage")
|
else if (!strcmp (where, "verify.keyusage")
|
||||||
&& gpg_err_code (err) == GPG_ERR_WRONG_KEY_USAGE)
|
&& gpg_err_code (err) == GPG_ERR_WRONG_KEY_USAGE)
|
||||||
sig->wrong_key_usage = 1;
|
sig->wrong_key_usage = 1;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user