2009-11-10 Marcus Brinkmann <marcus@g10code.de>
* op-support.c (_gpgme_op_reset): Instead of last change, only set sub protocol if it is not the default.
This commit is contained in:
parent
d173e6e010
commit
aff1ed3fb6
@ -1,3 +1,8 @@
|
|||||||
|
2009-11-10 Marcus Brinkmann <marcus@g10code.de>
|
||||||
|
|
||||||
|
* op-support.c (_gpgme_op_reset): Instead of last change, only set
|
||||||
|
sub protocol if it is not the default.
|
||||||
|
|
||||||
2009-11-10 Werner Koch <wk@g10code.com>
|
2009-11-10 Werner Koch <wk@g10code.com>
|
||||||
|
|
||||||
* op-support.c (_gpgme_op_reset): Ignore GPG_ERR_NOT_IMPLEMENTED
|
* op-support.c (_gpgme_op_reset): Ignore GPG_ERR_NOT_IMPLEMENTED
|
||||||
|
@ -130,11 +130,12 @@ _gpgme_op_reset (gpgme_ctx_t ctx, int type)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
err = _gpgme_engine_set_protocol (ctx->engine, ctx->sub_protocol);
|
if (ctx->sub_protocol != GPGME_PROTOCOL_DEFAULT)
|
||||||
if (gpg_err_code (err) == GPG_ERR_NOT_IMPLEMENTED)
|
{
|
||||||
err = 0;
|
err = _gpgme_engine_set_protocol (ctx->engine, ctx->sub_protocol);
|
||||||
if (err)
|
if (err)
|
||||||
return err;
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
if (type == 1 || (type == 2 && !ctx->io_cbs.add))
|
if (type == 1 || (type == 2 && !ctx->io_cbs.add))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user