From 8ad37ecc297f208d0a63783c1ffae33ad4c3c81a Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 24 Mar 2017 16:51:26 +0100 Subject: cpp: Use gpgme_op_decrypt_ex and add new flags. * lang/cpp/src/context.cpp: New decrypt and decryptVerify functions that take flags as arguments. Use new variants in old functions. (Context::setDecryptionFlags): New helper. (Context::Private::Private): Initialize new member. * lang/cpp/src/context_p.h (Context::Private::decryptFlags): New. * lang/cpp/src/context.h (Context::DecryptFlags): New enum. (Context::EncryptionFlags): Extend for EncryptWrap. -- The setDecryptionFlags provides a generic way to set decryption flags for the whole context. This allows existing code to just keep using the old functions and modify the decryption behavior in a central place. --- lang/cpp/src/context_p.h | 1 + 1 file changed, 1 insertion(+) (limited to 'lang/cpp/src/context_p.h') diff --git a/lang/cpp/src/context_p.h b/lang/cpp/src/context_p.h index be347831..d53da0ac 100644 --- a/lang/cpp/src/context_p.h +++ b/lang/cpp/src/context_p.h @@ -77,6 +77,7 @@ public: Data lastAssuanInquireData; std::unique_ptr lastAssuanTransaction; std::unique_ptr lastEditInteractor, lastCardEditInteractor; + DecryptionFlags decryptFlags; }; } // namespace GpgME -- cgit v1.2.3