Home GnuPG

Extract all the keys from CertificateLineEdit

Description

Extract all the keys from CertificateLineEdit

This includes keys from userId and from Kleopatra groups

Details

Provenance
CarlSchwanAuthored on Tue, Jun 3, 9:33 AM
Parents
rOJ8753cad918c4: Add compliance status to statubars when needed
Branches
Unknown
Tags
Unknown

Event Timeline

ikloecker added inline comments.
/client/reencrypt/choosekeydialog.cpp
134

I always add a reserve when I know how many items I want to copy. But in this case it's easier to just use the std::vector constructor that constructs a vector with the contents of the range [first, last), i.e. keys = std::vector<GpgME::Key>(groupKeys.begin(), groupKeys.end());

And make groupKeys a const-reference to avoid a copy of the Keys set.

140–143

In libkleo's predicates.h there's remove_duplicates_by_fpr.