Home GnuPG
Diffusion GnuPG af2fbd9b01a1

agent: always use hexgrip when storing key password

Description

agent: always use hexgrip when storing key password

The current code uses the binary ctrl->keygrip, but all the passphrase
storage engines expect this to be a string, so convert the binary
keygrip to a hex one before passing it in as the keyid. This fixes a
crash seen in some libsecret implementations where a non-ascii keyid
isn't well handled.

  • Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

Details

Provenance
James Bottomley via Gnupg-devel <gnupg-devel@gnupg.org>Authored on Jan 14 2022, 2:49 PM
wernerCommitted on Jan 24 2022, 10:22 PM
Parents
rG38e100acb720: gpg: Print Yubikey version correctly.
Branches
Unknown
Tags
Unknown