From 6dcf81f097bc5e833cecec0dff49cf5d6af62311 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Mon, 4 Aug 2003 21:11:11 +0000 Subject: [PATCH] doc/ 2003-08-04 Marcus Brinkmann * gpgme.texi (Verify): Get error code from SIG->status in the code for gpgme_get_sig_status. gpgme/ 2003-08-04 Marcus Brinkmann * verify.c (parse_new_sig): Fix status parsing case. --- trunk/doc/ChangeLog | 5 +++++ trunk/doc/gpgme.texi | 2 +- trunk/gpgme/ChangeLog | 4 ++++ trunk/gpgme/verify.c | 4 ++-- 4 files changed, 12 insertions(+), 3 deletions(-) diff --git a/trunk/doc/ChangeLog b/trunk/doc/ChangeLog index b06ffd7..65c5f89 100644 --- a/trunk/doc/ChangeLog +++ b/trunk/doc/ChangeLog @@ -1,3 +1,8 @@ +2003-08-04 Marcus Brinkmann + + * gpgme.texi (Verify): Get error code from SIG->status in the code + for gpgme_get_sig_status. + 2003-07-31 Marcus Brinkmann * gpgme.texi (Key Management): Add can_authenticate flag. diff --git a/trunk/doc/gpgme.texi b/trunk/doc/gpgme.texi index 018102b..6376552 100644 --- a/trunk/doc/gpgme.texi +++ b/trunk/doc/gpgme.texi @@ -3615,7 +3615,7 @@ The function @code{gpgme_get_sig_status} is equivalent to: if (r_stat) @{ - switch (sig->status) + switch (gpg_err_code (sig->status)) @{ case GPG_ERR_NO_ERROR: *r_stat = GPGME_SIG_STAT_GOOD; diff --git a/trunk/gpgme/ChangeLog b/trunk/gpgme/ChangeLog index eaa9b8a..35172dd 100644 --- a/trunk/gpgme/ChangeLog +++ b/trunk/gpgme/ChangeLog @@ -1,3 +1,7 @@ +2003-08-04 Marcus Brinkmann + + * verify.c (parse_new_sig): Fix status parsing case. + 2003-07-31 Marcus Brinkmann * gpgme.h (struct _gpgme_subkey): Add flag CAN_AUTHENTICATE. diff --git a/trunk/gpgme/verify.c b/trunk/gpgme/verify.c index 43190f6..3f70851 100644 --- a/trunk/gpgme/verify.c +++ b/trunk/gpgme/verify.c @@ -198,7 +198,7 @@ parse_new_sig (op_data_t opd, gpgme_status_code_t code, char *args) end++; i++; } - if (end && end[0] && (!end[1] || !end[1] == ' ')) + if (end && end[0] && (!end[1] || end[1] == ' ')) { switch (end[0]) { @@ -206,7 +206,7 @@ parse_new_sig (op_data_t opd, gpgme_status_code_t code, char *args) sig->status = gpg_error (GPG_ERR_UNSUPPORTED_ALGORITHM); break; - case 9: + case '9': sig->status = gpg_error (GPG_ERR_NO_PUBKEY); break; -- 2.26.2