From cda07b9ab4f09ac87bc1aebbbe113f125eedeb02 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Tue, 10 Nov 2009 14:49:35 +0000 Subject: 2009-11-10 Marcus Brinkmann * gpgme.h.in (gpgme_get_sub_protocol): Add prototype. * gpgme.def, libgpgme.vers: Add gpgme_get_sub_protocol. * context.h (struct gpgme_context): New member sub_protocol. * gpgme.c (gpgme_set_sub_protocol): Set CTX->sub_protocol. (gpgme_get_sub_protocol): New function. * op-support.c (_gpgme_op_reset): Set sub protocol. --- src/op-support.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/op-support.c') diff --git a/src/op-support.c b/src/op-support.c index 90e1283e..8dfe15d7 100644 --- a/src/op-support.c +++ b/src/op-support.c @@ -130,6 +130,10 @@ _gpgme_op_reset (gpgme_ctx_t ctx, int type) } } + err = _gpgme_engine_set_protocol (ctx->engine, ctx->sub_protocol); + if (err) + return err; + if (type == 1 || (type == 2 && !ctx->io_cbs.add)) { /* Use private event loop. */ -- cgit v1.2.3