Add new reason codes to the INV_RECP status code.
authorWerner Koch <wk@gnupg.org>
Tue, 10 Jun 2014 12:52:06 +0000 (14:52 +0200)
committerWerner Koch <wk@gnupg.org>
Tue, 10 Jun 2014 12:52:06 +0000 (14:52 +0200)
* src/op-support.c (_gpgme_parse_inv_recp): Add codes 13 and 14.

src/op-support.c

index edd317d..2bcb3a3 100644 (file)
@@ -266,6 +266,14 @@ _gpgme_parse_inv_recp (char *args, gpgme_invalid_key_t *key)
     case 12:
       inv_key->reason = gpg_error (GPG_ERR_MISSING_ISSUER_CERT);
       break;
+
+    case 13:
+      inv_key->reason = gpg_error (252); /*GPG_ERR_KEY_DISABLED*/
+      break;
+
+    case 14:
+      inv_key->reason = gpg_error (GPG_ERR_INV_USER_ID);
+      break;
     }
 
   while (*tail && *tail == ' ')