Home GnuPG

cpp: Allow retrieving import result of key listing with locate mode

Description

cpp: Allow retrieving import result of key listing with locate mode

* lang/cpp/src/context_p.h (enum Context::Private::Operation): Add
value KeyListWithImport.
* lang/cpp/src/context.cpp (Context::startKeyListing, Context::nextKey):
Set lastop to KeyListWithImport if keylist mode includes Locate.

Adding Import to lastop for keylist operations that perform a locate
allows retrieving the import result with Context::importResult.

Details

Provenance
ikloeckerAuthored on May 4 2022, 2:31 PM
Parents
rGPGMEPP036686b8a770: cpp: Allow merging the results of two imports
Branches
Unknown
Tags
Unknown
Tasks
T5951: gpgme: Add support for refreshing OpenPGP keys