diff options
author | Werner Koch <[email protected]> | 2018-05-31 22:13:18 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2018-05-31 22:13:53 +0000 |
commit | e2aa38b56a991a0da052acfe7566cc7a146d3bb6 (patch) | |
tree | 8abbd8519eda5cebdd2751b32ba4aeb86f3bf8ed /src/edit.c | |
parent | core: Minor cleanup in engine-gpg and -gpgsm. (diff) | |
download | gpgme-e2aa38b56a991a0da052acfe7566cc7a146d3bb6.tar.gz gpgme-e2aa38b56a991a0da052acfe7566cc7a146d3bb6.zip |
core: Remove cruft from the engine-gpg code.
* src/engine-gpg.c (read_status): Remove the handling of
GPGME_STATUS_END_STREAM; this was used only by the former experimental
--pipemode of gpg but that is not even anymore invoked here.
(struct engine_gpg): Remove cmd.linked_data and .linked_idx.
(build_argv): Remove code for linked_data.
(gpg_new): Ditto.
(gpg_set_command_handler): Remove arr linked_data.
* src/engine-backend.h (engine_ops): Remove arg data from
set_command_handler.
* src/engine.c (_gpgme_engine_set_command_handler): Remove arg
linked_data and adjust all callers.
Signed-off-by: Werner Koch <[email protected]>
Diffstat (limited to 'src/edit.c')
-rw-r--r-- | src/edit.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -139,8 +139,7 @@ interact_start (gpgme_ctx_t ctx, int synchronous, gpgme_key_t key, opd->fnc_old = NULL; opd->fnc_value = fnc_value; - err = _gpgme_engine_set_command_handler (ctx->engine, command_handler, - ctx, out); + err = _gpgme_engine_set_command_handler (ctx->engine, command_handler, ctx); if (err) return err; @@ -219,8 +218,7 @@ edit_start (gpgme_ctx_t ctx, int synchronous, int type, gpgme_key_t key, opd->fnc_old = fnc; opd->fnc_value = fnc_value; - err = _gpgme_engine_set_command_handler (ctx->engine, command_handler, - ctx, out); + err = _gpgme_engine_set_command_handler (ctx->engine, command_handler, ctx); if (err) return err; |