Home GnuPG
Diffusion GPGME aa03205fe5e8

cpp: Add support for gpgme_op_setexpire

Description

cpp: Add support for gpgme_op_setexpire

* lang/cpp/src/context.cpp
(Context::setExpire, Context::startSetExpire): New.
(Context::getLFSeparatedListOfFingerprintsFromSubkeys):
New helper.
* lang/cpp/src/context.h
(Context::SetExpireFlags): New enum.
(Context::setExpire, Context::startSetExpire): Add
prototypes.
(Context::getLFSeparatedListOfFingerprintsFromSubkeys):
Add as private helper.

Details

Provenance
ikloeckerAuthored on Aug 4 2020, 4:22 PM
Parents
rM197ba151e70c: cpp: Add ostream operator for subkey
Branches
Unknown
Tags
Unknown
Tasks
T5003: GpgME++: Add support for gpgme_set_expire

Event Timeline

aheinecke added inline comments.
/lang/cpp/src/context.h
503

Is there a reason to bind this to a Context object? For such a private helper function I would have used just a static function in context.cpp similar to e.g. percent_unescape or format_error etc. in context.cpp.

getKeysFromRecipients is different because that accesses GpgME::Key::impl() and "may" only do that because context is a friend of key. (And it's a bit of a hack ;-) )