Home GnuPG
Diffusion GPGME 8ad37ecc297f

cpp: Use gpgme_op_decrypt_ex and add new flags.
8ad37ecc297fUnpublished

Unpublished Commit · Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

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.

Details

Provenance
aheineckeAuthored on Mar 24 2017, 4:51 PM
Parents
rM6ac1f2cdedb0: core: New flags GPGME_DECRYPT_UNWRAP and GPGME_ENCRYPT_WRAP.
Branches
Unknown
Tags
Unknown

Event Timeline

Andre Heinecke <aheinecke@intevation.de> committed rM8ad37ecc297f: cpp: Use gpgme_op_decrypt_ex and add new flags. (authored by Andre Heinecke <aheinecke@intevation.de>).Mar 24 2017, 4:51 PM