Home GnuPG
Diffusion GPGME d911a1536488

cpp: Allow merging the results of two imports

Description

cpp: Allow merging the results of two imports

* lang/cpp/src/importresult.h, lang/cpp/src/importresult.cpp (class
ImportResult): Add member function mergeWith.

This allows creating a consolidated result of several independent
imports. If the import results to merge considered the same keys, then
not all counts can be consolidated correctly, but the important numbers
like the number of considered keys, the number of imported keys, the
number of unchanged keys and the numbers of new user IDs, subkeys,
signatures and revocations should be correct.

Details

Provenance
ikloeckerAuthored on May 4 2022, 12:37 PM
Parents
rMf1a354fd57d6: qt: Apply compiler hint
Branches
Unknown
Tags
Unknown
Tasks
T5951: gpgme: Add support for refreshing OpenPGP keys