aboutsummaryrefslogtreecommitdiffstats
path: root/src/passwd.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2018-05-31 22:13:18 +0000
committerWerner Koch <[email protected]>2018-05-31 22:13:53 +0000
commite2aa38b56a991a0da052acfe7566cc7a146d3bb6 (patch)
tree8abbd8519eda5cebdd2751b32ba4aeb86f3bf8ed /src/passwd.c
parentcore: Minor cleanup in engine-gpg and -gpgsm. (diff)
downloadgpgme-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/passwd.c')
-rw-r--r--src/passwd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/passwd.c b/src/passwd.c
index 5bd67a52..6c03002b 100644
--- a/src/passwd.c
+++ b/src/passwd.c
@@ -151,7 +151,7 @@ passwd_start (gpgme_ctx_t ctx, int synchronous, gpgme_key_t key,
if (ctx->passphrase_cb)
{
err = _gpgme_engine_set_command_handler
- (ctx->engine, _gpgme_passphrase_command_handler, ctx, NULL);
+ (ctx->engine, _gpgme_passphrase_command_handler, ctx);
if (err)
return err;
}