Make revoked keys explicit
authorColin Leroy <colin@colino.net>
Mon, 9 Jun 2014 11:27:13 +0000 (13:27 +0200)
committerColin Leroy <colin@colino.net>
Mon, 9 Jun 2014 11:27:33 +0000 (13:27 +0200)
src/plugins/pgpcore/sgpgme.c

index ad52417..cbe6480 100644 (file)
@@ -229,6 +229,9 @@ gchar *sgpgme_sigstat_info_short(gpgme_ctx_t ctx, gpgme_verify_result_t status)
        case GPG_ERR_KEY_EXPIRED:
                result = g_strdup_printf(_("Expired key from %s."), uname);
                break;
+       case GPG_ERR_CERT_REVOKED:
+               result = g_strdup_printf(_("Revoked key from %s."), uname);
+               break;
        case GPG_ERR_BAD_SIGNATURE:
                result = g_strdup_printf(_("Bad signature from %s."), uname);
                break;
@@ -311,6 +314,11 @@ gchar *sgpgme_sigstat_info_full(gpgme_ctx_t ctx, gpgme_verify_result_t status)
                                _("Expired signature from uid \"%s\" (Validity: %s)\n"),
                                uid, get_validity_str(user?user->validity:GPGME_VALIDITY_UNKNOWN));
                        break;
+               case GPG_ERR_CERT_EXPIRED:
+                       g_string_append_printf(siginfo,
+                               _("Revoked key uid \"%s\"\n"),
+                               uid);
+                       break;
                case GPG_ERR_BAD_SIGNATURE:
                        g_string_append_printf(siginfo,
                                _("BAD signature from \"%s\"\n"),