diff options
author | Ingo Klöcker <[email protected]> | 2023-01-27 08:40:05 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-01-27 11:16:02 +0000 |
commit | d28ea8c6b3db008150e2bae99a33e30b55c4bc10 (patch) | |
tree | 284470de124702bf6478bd165a13d56eed7d125c /lang/cpp/src/context.h | |
parent | cpp: Add convenience overload to set file name (diff) | |
download | gpgme-d28ea8c6b3db008150e2bae99a33e30b55c4bc10.tar.gz gpgme-d28ea8c6b3db008150e2bae99a33e30b55c4bc10.zip |
cpp: Support new archive encryption flag
* lang/cpp/src/context.h (EncryptArchive): New flag.
* lang/cpp/src/context.cpp (encryptflags2encryptflags): Convert
EncryptArchive to corresponding gpgme encrypt flags.
(operator<<): Add new flag to debug stream.
--
GnuPG-bug-id: 6342
Diffstat (limited to 'lang/cpp/src/context.h')
-rw-r--r-- | lang/cpp/src/context.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index 7bd1b03d..b38e8cdf 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, + EncryptArchive = 512, }; EncryptionResult encrypt(const std::vector<Key> &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags); GpgME::Error encryptSymmetrically(const Data &plainText, Data &cipherText); |