Home GnuPG
Diffusion GPGME 6d21256c9220

core,cpp: Add new key flags to gpgme_subkey_t

Description

core,cpp: Add new key flags to gpgme_subkey_t

* src/gpgme.h.in (struct _gpgme_subkey): Add bit flags can_renc,
can_timestamp, adn is_group_owned. Reduce size of _unused.
* src/keylist.c (set_subkey_capability): Set them.
* tests/run-keylist.c (main): Print them.
* lang/cpp/src/key.h (Subkey::canRenc): New.
(Subkey::canTimestamp): New.
(Subkey::isGroupOwned): New.
* lang/cpp/src/key.cpp: Implement new methods.
(Subkey::isQualified): Print them.
(std::ostream &operator<<): Print them.

Details

Provenance
wernerAuthored on Mar 21 2023, 8:36 AM
Parents
rM18e09b15d58d: Post release updates
Branches
Unknown
Tags
Unknown
Tasks
T6395: ADSK Feature