Home GnuPG
Diffusion GnuPG 2c3e67430d9b

Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.
2c3e67430d9bUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT.

* g10/keyid.c (keystrlen): If opt.keyid_format is KF_DEFAULT unset,
default to KF_SHORT.
(format_keyid): Default to KF_SHORT, not KF_0xLONG.

Without this fix, gpgv2 fails with:

gpgv: Ohhhh jeeee: ... this is a bug (keyid.c:342:keystrlen)

  • Signed-off-by: Neal H. Walfield <neal@g10code.com>

Details

Provenance
dkgAuthored on Dec 9 2015, 7:01 PM
Neal H. Walfield <neal@g10code.com>Committed on Jan 6 2016, 3:05 PM
Parents
rGc7389ae90fa4: gpg: Silence some regression tests.
Branches
Unknown
Tags
Unknown

Event Timeline

Neal H. Walfield <neal@g10code.com> committed rG2c3e67430d9b: Fix keystrlen to work when OPT.KEYID_FORMAT is KF_DEFAULT. (authored by Daniel Kahn Gillmor <dkg@fifthhorseman.net>).Jan 6 2016, 3:05 PM