aboutsummaryrefslogtreecommitdiffstats
path: root/lang/cpp/src/context.cpp
diff options
context:
space:
mode:
authorAndre Heinecke <[email protected]>2019-04-24 10:34:48 +0000
committerAndre Heinecke <[email protected]>2019-04-24 10:36:14 +0000
commit7981ec4147f3058d5b56905903456247993dc6f7 (patch)
tree1e5f8eaa3f226f8bff5335e0c454918317b8f5e7 /lang/cpp/src/context.cpp
parentcore: Fix duplication of close_notify_handler for gpgsm. (diff)
downloadgpgme-7981ec4147f3058d5b56905903456247993dc6f7.tar.gz
gpgme-7981ec4147f3058d5b56905903456247993dc6f7.zip
cpp: Add wrapper for gpgme_set_global_flag
* lang/cpp/src/context.cpp (setGlobalFlag): New. * lang/cpp/src/global.h (setGlobalFlag): Export it. -- GnuPG-Bug-Id: T4471
Diffstat (limited to 'lang/cpp/src/context.cpp')
-rw-r--r--lang/cpp/src/context.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lang/cpp/src/context.cpp b/lang/cpp/src/context.cpp
index 444809af..c0a1dc21 100644
--- a/lang/cpp/src/context.cpp
+++ b/lang/cpp/src/context.cpp
@@ -1791,3 +1791,8 @@ bool GpgME::hasFeature(unsigned long features, unsigned long features2)
&& features2 == (features2 & supported_features2)
;
}
+
+int GpgME::setGlobalFlag(const char *name, const char *value)
+{
+ return gpgme_set_global_flag(name, value);
+}