X-Git-Url: https://git.sommitrealweird.co.uk/onak.git/blobdiff_plain/6e719fc77846c969252cd51c2639ecb2c61bc941..0d2a5aeeb4120999afc79d06619d90e26e2fec5c:/keyindex.c?ds=inline 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) {