From d96e8a7a6bfcaad4587dd2bb648aa764b0d4e1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Tue, 29 Mar 2022 15:19:27 +0200 Subject: cpp: Add interactor to revoke a key * lang/cpp/src/global.h (enum class RevocationReason): New. * lang/cpp/src/gpgrevokekeyeditinteractor.cpp, lang/cpp/src/gpgrevokekeyeditinteractor.h: New. * lang/cpp/src/Makefile.am: Add new files. -- GnuPG-bug-id: 5904 --- lang/cpp/src/global.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lang/cpp/src/global.h') diff --git a/lang/cpp/src/global.h b/lang/cpp/src/global.h index a25b46ce..9aafea87 100644 --- a/lang/cpp/src/global.h +++ b/lang/cpp/src/global.h @@ -72,6 +72,13 @@ enum KeyListMode { enum SignatureMode { NormalSignatureMode, Detached, Clearsigned }; +enum class RevocationReason { + Unspecified = 0, + Compromised = 1, + Superseded = 2, + NoLongerUsed = 3 +}; + GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, Protocol proto); GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, Engine eng); GPGMEPP_EXPORT std::ostream &operator<<(std::ostream &os, KeyListMode mode); -- cgit v1.2.3