From b9d1269d0a383266de1dbfaaeafde2c6ba53a955 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 21 May 2004 16:36:28 +0000 Subject: [PATCH] 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. --- gpgme/ChangeLog | 7 +++++++ gpgme/gpgme.h | 3 ++- gpgme/verify.c | 5 +++++ 3 files changed, 14 insertions(+), 1 deletion(-) 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; -- 2.26.2