Home GnuPG
Diffusion GPGME 13bcc6680ac2

qt: List keys once with --with-secret instead of twice

Description

qt: List keys once with --with-secret instead of twice

* lang/qt/src/qgpgmelistallkeysjob.cpp
(do_list_keys): Rename to do_list_keys_legacy and put into unnamed
namespace.
(merge_keys): Put into unnamed namespace.
(list_keys): Rename to list_keys_legacy and put into unnamed namespace.
(do_list_keys, list_keys): New.
* lang/qt/tests/t-keylist.cpp (testListAllKeysSync): New.

With gpg >= 2.1, list keys once with --with-secret instead of listing
public keys and secret keys and then merging (part of) the information
about the keys.

  • GnuPG-bug-id: T4794

Details

Provenance
ikloeckerAuthored on Sep 7 2020, 12:02 PM
Parents
rM188cc9e9b553: cpp: Add keylist mode WithSecret
Branches
Unknown
Tags
Unknown
Tasks
Unknown Object (Maniphest Task)