From: Marcus Brinkmann Date: Mon, 4 Aug 2003 21:11:11 +0000 (+0000) Subject: doc/ X-Git-Tag: gpgme-0-4-3~41 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=275ef15b0be9ce0bfd15412043e2ce95d36dd1c8;p=gpgme.git 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. --- diff --git a/doc/ChangeLog b/doc/ChangeLog index b06ffd7..65c5f89 100644 --- a/doc/ChangeLog +++ b/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/doc/gpgme.texi b/doc/gpgme.texi index 018102b..6376552 100644 --- a/doc/gpgme.texi +++ b/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/gpgme/ChangeLog b/gpgme/ChangeLog index eaa9b8a..35172dd 100644 --- a/gpgme/ChangeLog +++ b/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/gpgme/verify.c b/gpgme/verify.c index 43190f6..3f70851 100644 --- a/gpgme/verify.c +++ b/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;