From 21b09f74e66699c8fca06b785f546671af996509 Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Fri, 14 Dec 2001 22:32:31 +0000 Subject: [PATCH] 2001-12-14 Marcus Brinkmann * engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into message_data, not SIG. (_gpgme_gpgsm_op_sign): Use `--detached', not `--detach'. * sign.c (sign_status_handler): Call _gpgme_passphrase_status_handler early. 2001-12-14 Marcus Brinkmann --- gpgme/ChangeLog | 4 ++++ gpgme/engine-gpgsm.c | 2 +- gpgme/sign.c | 2 ++ 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog index 166f631..ed32880 100644 --- a/gpgme/ChangeLog +++ b/gpgme/ChangeLog @@ -2,6 +2,10 @@ * engine-gpgsm.c (_gpgme_gpgsm_op_verify): Put TEXT into message_data, not SIG. + (_gpgme_gpgsm_op_sign): Use `--detached', not `--detach'. + + * sign.c (sign_status_handler): Call + _gpgme_passphrase_status_handler early. 2001-12-14 Marcus Brinkmann diff --git a/gpgme/engine-gpgsm.c b/gpgme/engine-gpgsm.c index 366a631..073f1df 100644 --- a/gpgme/engine-gpgsm.c +++ b/gpgme/engine-gpgsm.c @@ -453,7 +453,7 @@ _gpgme_gpgsm_op_sign (GpgsmObject gpgsm, GpgmeData in, GpgmeData out, return mk_error (Invalid_Value); gpgsm->command = xtrystrdup (mode == GPGME_SIG_MODE_DETACH - ? "SIGN --detach" : "SIGN"); + ? "SIGN --detached" : "SIGN"); if (!gpgsm->command) return mk_error (Out_Of_Core); diff --git a/gpgme/sign.c b/gpgme/sign.c index 448381d..e31c5ad 100644 --- a/gpgme/sign.c +++ b/gpgme/sign.c @@ -138,6 +138,8 @@ append_xml_siginfo (GpgmeData *rdh, char *args) static void sign_status_handler (GpgmeCtx ctx, GpgStatusCode code, char *args) { + _gpgme_passphrase_status_handler (ctx, code, args); + if (ctx->out_of_core) return; if (!ctx->result.sign) -- 2.26.2