diff options
| author | Andre Heinecke <[email protected]> | 2016-08-09 11:07:30 +0000 | 
|---|---|---|
| committer | Andre Heinecke <[email protected]> | 2016-08-09 12:23:51 +0000 | 
| commit | 17372393798ea5e2d6838f3dd1e001dd4a66c941 (patch) | |
| tree | 7b2c46759cfbae78c0953e7809604d31c46f7d68 /lang/cpp/src/context.h | |
| parent | Cpp: Fix simple symmetric encryption (diff) | |
| download | gpgme-17372393798ea5e2d6838f3dd1e001dd4a66c941.tar.gz gpgme-17372393798ea5e2d6838f3dd1e001dd4a66c941.zip | |
Cpp: Add support for all EncryptionFlags
* lang/cpp/src/context.h (EncryptionFlags): Extend.
* lang/cpp/src/context.cpp (encryptflags2encryptflags): Ditto.
Diffstat (limited to 'lang/cpp/src/context.h')
| -rw-r--r-- | lang/cpp/src/context.h | 10 | 
1 files changed, 9 insertions, 1 deletions
| diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index c9c2af73..c7c0ecb9 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -292,7 +292,15 @@ public:      // Encryption      // -    enum EncryptionFlags { None = 0, AlwaysTrust = 1, NoEncryptTo = 2 }; +    enum EncryptionFlags { +        None = 0, +        AlwaysTrust = 1, +        NoEncryptTo = 2, +        Prepare = 4, +        ExpectSign = 8, +        NoCompress = 16, +        Symmetric = 32 +    };      EncryptionResult encrypt(const std::vector<Key> &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags);      GpgME::Error encryptSymmetrically(const Data &plainText, Data &cipherText);      GpgME::Error startEncryption(const std::vector<Key> &recipients, const Data &plainText, Data &cipherText, EncryptionFlags flags); | 
