diff options
author | Andre Heinecke <[email protected]> | 2016-08-25 14:17:46 +0000 |
---|---|---|
committer | Andre Heinecke <[email protected]> | 2016-08-25 14:17:46 +0000 |
commit | f311b92ceaedb12c9e00a722b6b47bbe6b50871e (patch) | |
tree | df8c130b1a7213d6e4eb48872bf73a01bb0b09c4 /lang/cpp/src/util.h | |
parent | qt: Fix tofuinfo test when gpg is gpg2 (diff) | |
download | gpgme-f311b92ceaedb12c9e00a722b6b47bbe6b50871e.tar.gz gpgme-f311b92ceaedb12c9e00a722b6b47bbe6b50871e.zip |
cpp: Add WithTofu Keylist Mode
* lang/cpp/src/context.cpp: Handle WithTofu.
* lang/cpp/src/global.h (KeyListMode): Add WithTofu.
* lang/cpp/src/util.h (add_to_gpgme_keylist_mode_t): Handle WithTofu.
Diffstat (limited to 'lang/cpp/src/util.h')
-rw-r--r-- | lang/cpp/src/util.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lang/cpp/src/util.h b/lang/cpp/src/util.h index 8ccb0bf5..b0d47e3e 100644 --- a/lang/cpp/src/util.h +++ b/lang/cpp/src/util.h @@ -76,6 +76,9 @@ static inline gpgme_keylist_mode_t add_to_gpgme_keylist_mode_t(unsigned int oldm if (newmodes & GpgME::Validate) { oldmode |= GPGME_KEYLIST_MODE_VALIDATE; } + if (newmodes & GpgME::WithTofu) { + oldmode |= GPGME_KEYLIST_MODE_WITH_TOFU; + } #ifndef NDEBUG if (newmodes & ~(GpgME::Local | GpgME::Extern | GpgME::Signatures | GpgME::SignatureNotations | GpgME::Ephemeral | GpgME::Validate)) { //std::cerr << "GpgME::Context: keylist mode must be one of Local, " |