From: Marcus Brinkmann Date: Fri, 21 May 2004 16:36:28 +0000 (+0000) Subject: 2004-05-21 Marcus Brinkmann X-Git-Tag: gpgme-0-9-0~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b9d1269d0a383266de1dbfaaeafde2c6ba53a955;p=gpgme.git 2004-05-21 Marcus Brinkmann * gpgme.h (gpgme_status_code_t): Add GPGME_STATUS_REVKEYSIG. * verify.c (_gpgme_verify_status_handler): Add handling of GPGME_STATUS_REVKEYSIG. (parse_trust): Likewise. --- diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index c67ded2..3be03a7 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -1,3 +1,10 @@ +2004-05-21 Marcus Brinkmann + + * gpgme.h (gpgme_status_code_t): Add GPGME_STATUS_REVKEYSIG. + * verify.c (_gpgme_verify_status_handler): Add handling of + GPGME_STATUS_REVKEYSIG. + (parse_trust): Likewise. + 2004-05-21 Marcus Brinkmann * gpgme.h (struct _gpgme_decrypt_result): New fields diff --git a/gpgme/gpgme.h b/gpgme/gpgme.h index 34d836f..e0b5db2 100644 --- a/gpgme/gpgme.h +++ b/gpgme/gpgme.h @@ -399,7 +399,8 @@ typedef enum GPGME_STATUS_EXPKEYSIG, GPGME_STATUS_TRUNCATED, GPGME_STATUS_ERROR, - GPGME_STATUS_NEWSIG + GPGME_STATUS_NEWSIG, + GPGME_STATUS_REVKEYSIG } gpgme_status_code_t; diff --git a/gpgme/verify.c b/gpgme/verify.c index c695b9e..7ac5fe2 100644 --- a/gpgme/verify.c +++ b/gpgme/verify.c @@ -223,6 +223,10 @@ parse_new_sig (op_data_t opd, gpgme_status_code_t code, char *args) sig->status = gpg_error (GPG_ERR_BAD_SIGNATURE); break; + case GPGME_STATUS_REVKEYSIG: + sig->status = gpg_error (GPG_ERR_CERT_REVOKED); + break; + case GPGME_STATUS_ERRSIG: if (end) { @@ -531,6 +535,7 @@ _gpgme_verify_status_handler (void *priv, gpgme_status_code_t code, char *args) case GPGME_STATUS_EXPKEYSIG: case GPGME_STATUS_BADSIG: case GPGME_STATUS_ERRSIG: + case GPGME_STATUS_REVKEYSIG: if (sig && !opd->did_prepare_new_sig) calc_sig_summary (sig); opd->only_newsig_seen = 0;