aboutsummaryrefslogtreecommitdiffstats
path: root/src/engine.c
diff options
context:
space:
mode:
authorBen McGinnes <[email protected]>2018-03-24 22:44:51 +0000
committerBen McGinnes <[email protected]>2018-03-24 22:44:51 +0000
commitd0bb4ec4ecdfae4dfd9dd84aef905afb490013d5 (patch)
treee9d1a21501e4d09bd0442e9eee829046b25a922d /src/engine.c
parentdoc: python bindings howto (diff)
parentcore: Need to increase an array in the gpg engine. (diff)
downloadgpgme-d0bb4ec4ecdfae4dfd9dd84aef905afb490013d5.tar.gz
gpgme-d0bb4ec4ecdfae4dfd9dd84aef905afb490013d5.zip
Merge branch 'master' of ssh+git://playfair.gnupg.org/git/gpgme
Diffstat (limited to 'src/engine.c')
-rw-r--r--src/engine.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/engine.c b/src/engine.c
index 28ba9fdf..e51384f0 100644
--- a/src/engine.c
+++ b/src/engine.c
@@ -651,6 +651,26 @@ _gpgme_engine_set_protocol (engine_t engine, gpgme_protocol_t protocol)
}
+/* Pass information about the current context to the engine. The
+ * engine may use this context to retrieve context specific flags.
+ * Important: The engine is required to immediately copy the required
+ * flags to its own context!
+ *
+ * This function will eventually be used to reduce the number of
+ * explicit passed flags. */
+void
+_gpgme_engine_set_engine_flags (engine_t engine, gpgme_ctx_t ctx)
+{
+ if (!engine)
+ return;
+
+ if (!engine->ops->set_engine_flags)
+ return;
+
+ (*engine->ops->set_engine_flags) (engine->engine, ctx);
+}
+
+
gpgme_error_t
_gpgme_engine_op_decrypt (engine_t engine,
gpgme_decrypt_flags_t flags,