Home GnuPG
Diffusion GPGME 194272dbc3e3

cpp, qt: Use uidhash to select uids for signing

Description

cpp, qt: Use uidhash to select uids for signing

* lang/cpp/src/gpgsignkeyeditinteractor.cpp (action):
Use uidhash instead of number.
(GpgSignKeyEditInteractor::setKey): New.
* lang/cpp/src/gpgsignkeyeditinteractor.h: Update accordingly.
* lang/cpp/src/key.h, lang/cpp/src/key.cpp: Wrap uidhash.
* lang/qt/src/qgpgmesignkeyjob.cpp: Set the key.

Using the uidhash avoids problems when the user ids
on --edit-key are different ones then the uids
captured by gpgme when listing keys. Or if
they are in a different order. This can happen
with cached keys or keys with user attributes.

Details

Provenance
aheineckeAuthored on Dec 13 2019, 6:06 PM
Parents
rM5eeae535ee0d: core: Extend gpgme_user_id_t with uidhash member.
Branches
Unknown
Tags
Unknown