aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r--lang/cpp/src/context.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 68b061db..f93887f5 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1343,6 +1343,15 @@ static gpgme_encrypt_flags_t encryptflags2encryptflags(Context::EncryptionFlags
if (flags & Context::Symmetric) {
result |= GPGME_ENCRYPT_SYMMETRIC;
}
+ if (flags & Context::ThrowKeyIds) {
+ result |= GPGME_ENCRYPT_THROW_KEYIDS;
+ }
+ if (flags & Context::EncryptWrap) {
+ result |= GPGME_ENCRYPT_WRAP;
+ }
+ if (flags & Context::WantAddress) {
+ result |= GPGME_ENCRYPT_WANT_ADDRESS;
+ }
if (flags & Context::EncryptArchive) {
result |= GPGME_ENCRYPT_ARCHIVE;
}
@@ -1916,6 +1925,9 @@ std::ostream &operator<<(std::ostream &os, Context::EncryptionFlags flags)
CHECK(ExpectSign);
CHECK(NoCompress);
CHECK(Symmetric);
+ CHECK(ThrowKeyIds);
+ CHECK(EncryptWrap);
+ CHECK(WantAddress);
CHECK(EncryptArchive);
#undef CHECK
return os << ')';