From 6d21256c9220df05bf92a695a787dde13fe44ca7 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 21 Mar 2023 08:36:33 +0100 Subject: 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. -- GnuPG-bug-id: 6395 --- lang/cpp/src/key.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/cpp/src/key.h') diff --git a/lang/cpp/src/key.h b/lang/cpp/src/key.h index 09f1879f..787cb43e 100644 --- a/lang/cpp/src/key.h +++ b/lang/cpp/src/key.h @@ -270,6 +270,9 @@ public: bool canSign() const; bool canCertify() const; bool canAuthenticate() const; + bool canRenc() const; + bool canTimestamp() const; + bool isGroupOwned() const; bool isQualified() const; bool isDeVs() const; bool isCardKey() const; -- cgit v1.2.3