diff options
author | Ingo Klöcker <[email protected]> | 2023-01-26 10:59:50 +0000 |
---|---|---|
committer | Ingo Klöcker <[email protected]> | 2023-01-26 11:01:28 +0000 |
commit | 3e31f648e513bed0029b09104d416d25fca08868 (patch) | |
tree | 68bd769a45c75a8623601b6f6b6dd6a71f662535 /lang/cpp/src/context.h | |
parent | cpp: Pass ThrowKeyIds and EncryptWrap flags to GpgME (diff) | |
download | gpgme-3e31f648e513bed0029b09104d416d25fca08868.tar.gz gpgme-3e31f648e513bed0029b09104d416d25fca08868.zip |
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
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..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<Key> &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags); GpgME::Error encryptSymmetrically(const Data &plainText, Data &cipherText); |