Inconsistent output for revocation keys in --list-keys --with-colons
Closed, ResolvedPublic


The file doc/DETAILS says on the format of "Field 11 - Signature class":

This is a 2 digit hexnumber followed by either the letter 'x' for an exportable signature or
the letter 'l' for a local-only signature. The class byte of an revocation key is also given
here, 'x' and 'l' is used the same way.

However, the gnupg source (g10/keylist.c) formats the output by function print_revokers() as follows:

es_fprintf (fp, ":%02x%s:\n",
                      (pk->revkey[i].class & 0x40) ? "s" : "");

What's right?

stm created this task.Aug 20 2018, 8:24 PM
werner triaged this task as Normal priority.Dec 12 2018, 9:17 AM
gniibe claimed this task.Jul 16 2019, 9:55 AM
gniibe closed this task as Resolved.
gniibe added a subscriber: gniibe.

Thanks, fixed in master.