Page MenuHome GnuPG

--list-keys --with-colons or --fixed-list-mode does not properly indicate usage flags on certify-only primary keys
Closed, ResolvedPublic

Description

If a gpg keyring contains a primary key that is marked with only the "certify"
usage flag (0x01), then running gpg --with-colons --fixed-list-mode --list-key
fails to properly set field 12 ("key capabilities"). It should read 'cC', but
instead, it is the empty string.

gpg --export | gpg --list-packets contains the correct information in the "key
flags" line, however.

Details

Version
1.4.9, 2.0.9

Event Timeline

dkg set Version to 1.4.9, 2.0.9.
dkg added a subscriber: dkg.

Here is an example OpenPGP certificate with only the certify flag set, if you
want to test with it.

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v1.4.9 (GNU/Linux)

mI0ESYtFtAEEALm7k/Zwi4b6SyHjwp2UgSxoxbJUWtpZ+iSLtyp2KTwDMCmGz3KM
SEjWHEpFaDMYim3eDtjfQbpkqxK0cF3XwGekpuUkuLR1DjBP2pb00TGavM9EJjpY
hxVOK4EM5brT3ooABZWhPyz/g/7gL90m8/Raqn97tn5Ofxit82351uqbABEBAAG0
TUV4YW1wbGUgQ2VydGlmaWNhdGUgZm9yIGh0dHBzOi8vYnVncy5nMTBjb2RlLmNv
bS9nbnVwZy9pc3N1ZTk5OCAoRG8gTm90IFVzZSEpiLYEEwECACAFAkmLRbQCGwEG
CwkIBwMCBBUCCAMEFgIDAQIeAQIXgAAKCRDLkHRWYlmq0SZnA/4gt1a/XgasGWm0
lJMpVv8N2hTYGfnJ6r3p21S+5C+rm3CHoesPUWgOIZJBDbcZo+cT9XGn1B1upVoj
HJAgnHDR9rhcEo6sRU65mhoparDMb60ue6+2DaScvaBcqaoZ53MT/Zvf2W1Rh5NW
kE11j6EDXUfVmMlmunx5vdn5rLD2lA==

/pWH

-----END PGP PUBLIC KEY BLOCK-----

Fixed in SVN revision 4928 in both branches. Thanks.

werner claimed this task.
werner removed a project: In Progress.