From 90eb80134b2d7720b187a6b7fd16f40f23cf1022 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 21 May 2024 16:32:23 +0200 Subject: cpp: Add information about revocation keys to Key * lang/cpp/src/gpgmefw.h (gpgme_revocation_key_t): New forward declaration. * lang/cpp/src/key.cpp, lang/cpp/src/key.h (class Key): New methods revocationKey, numRevocationKeys, revocationKeys. (class RevocationKey): New. (swap): New overload for RevocationKey. (operator<<): New overload for RevocationKey. * lang/cpp/src/key.cpp (operator<<): Add information about revocation keys to the output stream for Key. * lang/cpp/tests/run-keylist.cpp (main): Don't output Key if nextKey failed, e.g. at the end of the key listing. -- GnuPG-bug-id: 7118 --- lang/cpp/src/gpgmefw.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lang/cpp/src/gpgmefw.h') diff --git a/lang/cpp/src/gpgmefw.h b/lang/cpp/src/gpgmefw.h index fdad7bf0..c6166d2c 100644 --- a/lang/cpp/src/gpgmefw.h +++ b/lang/cpp/src/gpgmefw.h @@ -75,4 +75,7 @@ typedef struct _gpgme_tofu_info *gpgme_tofu_info_t; struct _gpgme_op_query_swdb_result; typedef struct _gpgme_op_query_swdb_result *gpgme_query_swdb_result_t; +struct _gpgme_revocation_key; +typedef struct _gpgme_revocation_key *gpgme_revocation_key_t; + #endif // __GPGMEPP_GPGMEFW_H__ -- cgit v1.2.3