Home GnuPG
Diffusion GPGME 3519d6117332

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