aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.h
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2016-09-16 14:54:07 +0000
committerAndre Heinecke <[email protected]>2016-09-16 14:58:39 +0000
commit4d384d7bfef044094695271576ca233625bb520a (patch)
tree8958953d169ca91452e32df9b295821a1c8aff50 /lang/cpp/src/context.h
parentcpp: Declare sizes of tofu-info enums (diff)
downloadgpgme-4d384d7bfef044094695271576ca233625bb520a.tar.gz
gpgme-4d384d7bfef044094695271576ca233625bb520a.zip
cpp: Add support for gpgme_op_tofu_policy
* src/context.cpp, src/context.h (setTofuPolicy, setTofuPolicyStart): New.
Diffstat (limited to '')
-rw-r--r--lang/cpp/src/context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h
index f5e2b958..b1e4f5ff 100644
--- a/lang/cpp/src/context.h
+++ b/lang/cpp/src/context.h
@@ -214,6 +214,10 @@ public:
GpgME::Error edit(const Key &key, std::unique_ptr<EditInteractor> function, Data &out);
GpgME::Error startEditing(const Key &key, std::unique_ptr<EditInteractor> function, Data &out);
+ // using TofuInfo::Policy
+ Error setTofuPolicy(const Key &k, unsigned int policy);
+ Error setTofuPolicyStart(const Key &k, unsigned int policy);
+
EditInteractor *lastEditInteractor() const;
std::unique_ptr<EditInteractor> takeLastEditInteractor();