From 3e31f648e513bed0029b09104d416d25fca08868 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ingo=20Kl=C3=B6cker?= Date: Thu, 26 Jan 2023 11:59:50 +0100 Subject: cpp: Support all encryption flags * lang/cpp/src/context.h (WantAddress): New flag. * lang/cpp/src/context.cpp (encryptflags2encryptflags): Convert WantAddress to corresponding gpgme encrypt flags. (operator<<): Add new flag to debug stream. -- GnuPG-bug-id: 6359 --- lang/cpp/src/context.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lang/cpp/src/context.h') diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index 7bd1b03d..3c3544d2 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -447,7 +447,8 @@ public: NoCompress = 16, Symmetric = 32, ThrowKeyIds = 64, - EncryptWrap = 128 + EncryptWrap = 128, + WantAddress = 256, }; EncryptionResult encrypt(const std::vector &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags); GpgME::Error encryptSymmetrically(const Data &plainText, Data &cipherText); -- cgit v1.2.3