X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.c;h=64c99a3f0552b1ae5e6e8179e709c4602bde0145;hb=b29df6ee43968324d986717ac10d6e0656925196;hp=0732a11156eae085c991428fa7f4bd75641be89c;hpb=9cff08f92a96ed9ba182db3fa59a0ce516a50740;p=onak.git diff --git a/keyindex.c b/keyindex.c index 0732a11..64c99a3 100644 --- a/keyindex.c +++ b/keyindex.c @@ -268,8 +268,7 @@ int key_index(struct openpgp_publickey *keys, bool verbose, bool fingerprint, printf("%s%s%s\n", (html) ? txt2html(buf) : buf, (html) ? "" : "", - (keys->revocations == NULL) ? "" : - " *** REVOKED ***"); + (keys->revoked) ? " *** REVOKED ***" : ""); if (fingerprint) { display_fingerprint(keys); } @@ -279,8 +278,7 @@ int key_index(struct openpgp_publickey *keys, bool verbose, bool fingerprint, curuid = curuid->next; } else { printf("%s\n", - (keys->revocations == NULL) ? "" : - "*** REVOKED ***"); + (keys->revoked) ? "*** REVOKED ***": ""); if (fingerprint) { display_fingerprint(keys); } @@ -354,7 +352,7 @@ int mrkey_index(struct openpgp_publickey *keys) type, length, created_time, - (keys->revocations == NULL) ? "" : "r"); + (keys->revoked) ? "r" : ""); for (curuid = keys->uids; curuid != NULL; curuid = curuid->next) {