2004-05-21 Marcus Brinkmann <marcus@g10code.de>
authorMarcus Brinkmann <mb@g10code.com>
Fri, 21 May 2004 16:36:28 +0000 (16:36 +0000)
committerMarcus Brinkmann <mb@g10code.com>
Fri, 21 May 2004 16:36:28 +0000 (16:36 +0000)
* 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.

trunk/gpgme/ChangeLog
trunk/gpgme/gpgme.h
trunk/gpgme/verify.c

index c67ded22d9ac1bc836478ad895491db2c062c7e0..3be03a7aa6e4d7144d40ef04dcbc711eaefd6215 100644 (file)
@@ -1,3 +1,10 @@
+2004-05-21  Marcus Brinkmann  <marcus@g10code.de>
+
+       * 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  <marcus@g10code.de>
 
        * gpgme.h (struct _gpgme_decrypt_result): New fields
index 34d836faaa5bb45b9b9effa78cb5e4c4e8509e00..e0b5db2ab9916c4e7aa17f5e7f126c732808ae6b 100644 (file)
@@ -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;
 
index c695b9e0370a1f200328de4904d552bde54258e9..7ac5fe2ba8a1c38ab8d97d300eef13d4cfb0e373 100644 (file)
@@ -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;