X-Git-Url: http://the.earth.li/gitweb/?a=blobdiff_plain;f=keyindex.c;h=64c99a3f0552b1ae5e6e8179e709c4602bde0145;hb=0d2a5aeeb4120999afc79d06619d90e26e2fec5c;hp=0732a11156eae085c991428fa7f4bd75641be89c;hpb=6e719fc77846c969252cd51c2639ecb2c61bc941;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) {