aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/key.h
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2023-03-21 07:36:33 +0000
committerWerner Koch <[email protected]>2023-03-21 07:37:47 +0000
commit6d21256c9220df05bf92a695a787dde13fe44ca7 (patch)
tree570e7fb1f55c1308012f52d2a3f34246d0e2eda6 /lang/cpp/src/key.h
parentPost release updates (diff)
downloadgpgme-6d21256c9220df05bf92a695a787dde13fe44ca7.tar.gz
gpgme-6d21256c9220df05bf92a695a787dde13fe44ca7.zip
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
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/key.h3
1 files changed, 3 insertions, 0 deletions
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;