From 00b027af86f33782933c6200fe1ffe40e85f4346 Mon Sep 17 00:00:00 2001 From: Andre Heinecke Date: Fri, 1 Jun 2018 11:08:12 +0200 Subject: cpp: Add gpgme_(get)set_ctx_flag * NEWS: Mention API extensions. * lang/cpp/src/context.cpp, lang/cpp/src/context.h (Context::setFlag, Context::getFlag): New. --- lang/cpp/src/context.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lang/cpp/src/context.h') diff --git a/lang/cpp/src/context.h b/lang/cpp/src/context.h index aff8e49a..8cccff5c 100644 --- a/lang/cpp/src/context.h +++ b/lang/cpp/src/context.h @@ -86,6 +86,9 @@ public: void setOffline(bool useOfflineMode); bool offline() const; + const char *getFlag(const char *name) const; + Error setFlag(const char *name, const char *value); + enum CertificateInclusion { DefaultCertificates = -256, AllCertificatesExceptRoot = -2, @@ -453,6 +456,7 @@ public: { return d; } + private: // Helper functions that need to be context because they rely // on the "Friendlyness" of context to access the gpgme types. -- cgit v1.2.3