From: Marcus Brinkmann Date: Tue, 18 Feb 2003 00:54:42 +0000 (+0000) Subject: 2003-02-18 Marcus Brinkmann X-Git-Tag: gpgme-1.2.0@1385~690 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5d779e0dae40f3cd1f27c676792d018dc317821e;p=gpgme.git 2003-02-18 Marcus Brinkmann * engine-gpgsm.c (_gpgme_gpgsm_op_sign): Call gpgsm_assuan_simple_command with status handlers. * edit.c (_gpgme_op_edit_start): Check return value of _gpgme_engine_op_edit. * import.c (_gpgme_op_import_start): Likewise for _gpgme_engine_op_import. * sign.c (_gpgme_op_sign_start): Likewise for _gpgme_engine_op_sign. --- diff --git a/branches/gpgme-0-3-branch/gpgme/ChangeLog b/branches/gpgme-0-3-branch/gpgme/ChangeLog index 935c639..abd0dbb 100644 --- a/branches/gpgme-0-3-branch/gpgme/ChangeLog +++ b/branches/gpgme-0-3-branch/gpgme/ChangeLog @@ -1,3 +1,14 @@ +2003-02-18 Marcus Brinkmann + + * engine-gpgsm.c (_gpgme_gpgsm_op_sign): Call + gpgsm_assuan_simple_command with status handlers. + * edit.c (_gpgme_op_edit_start): Check return value of + _gpgme_engine_op_edit. + * import.c (_gpgme_op_import_start): Likewise for + _gpgme_engine_op_import. + * sign.c (_gpgme_op_sign_start): Likewise for + _gpgme_engine_op_sign. + 2003-01-30 Marcus Brinkmann * edit.c (_gpgme_edit_status_handler): Call the progress status diff --git a/branches/gpgme-0-3-branch/gpgme/edit.c b/branches/gpgme-0-3-branch/gpgme/edit.c index afc0a35..19cbce6 100644 --- a/branches/gpgme-0-3-branch/gpgme/edit.c +++ b/branches/gpgme-0-3-branch/gpgme/edit.c @@ -112,10 +112,11 @@ _gpgme_op_edit_start (GpgmeCtx ctx, int synchronous, _gpgme_engine_set_verbosity (ctx->engine, ctx->verbosity); - _gpgme_engine_op_edit (ctx->engine, key, out, ctx); + err = _gpgme_engine_op_edit (ctx->engine, key, out, ctx); /* And kick off the process. */ - err = _gpgme_engine_start (ctx->engine, ctx); + if (!err) + err = _gpgme_engine_start (ctx->engine, ctx); leave: if (err) diff --git a/branches/gpgme-0-3-branch/gpgme/engine-gpgsm.c b/branches/gpgme-0-3-branch/gpgme/engine-gpgsm.c index 41e63f5..8e66ba8 100644 --- a/branches/gpgme-0-3-branch/gpgme/engine-gpgsm.c +++ b/branches/gpgme-0-3-branch/gpgme/engine-gpgsm.c @@ -1138,7 +1138,8 @@ _gpgme_gpgsm_op_sign (GpgsmObject gpgsm, GpgmeData in, GpgmeData out, strcpy (stpcpy (buf, "SIGNER "), s); err = gpgsm_assuan_simple_command (gpgsm->assuan_ctx, buf, - NULL, NULL); + gpgsm->status.fnc, + gpgsm->status.fnc_value); } else err = GPGME_Invalid_Key; diff --git a/branches/gpgme-0-3-branch/gpgme/import.c b/branches/gpgme-0-3-branch/gpgme/import.c index f522c95..55b69ea 100644 --- a/branches/gpgme-0-3-branch/gpgme/import.c +++ b/branches/gpgme-0-3-branch/gpgme/import.c @@ -196,7 +196,7 @@ _gpgme_op_import_start (GpgmeCtx ctx, int synchronous, GpgmeData keydata) _gpgme_engine_set_status_handler (ctx->engine, import_status_handler, ctx); _gpgme_engine_set_verbosity (ctx->engine, ctx->verbosity); - _gpgme_engine_op_import (ctx->engine, keydata); + err = _gpgme_engine_op_import (ctx->engine, keydata); if (!err) err = _gpgme_engine_start (ctx->engine, ctx); diff --git a/branches/gpgme-0-3-branch/gpgme/sign.c b/branches/gpgme-0-3-branch/gpgme/sign.c index c077c55..9b9a6b2 100644 --- a/branches/gpgme-0-3-branch/gpgme/sign.c +++ b/branches/gpgme-0-3-branch/gpgme/sign.c @@ -206,12 +206,13 @@ _gpgme_op_sign_start (GpgmeCtx ctx, int synchronous, ctx); _gpgme_engine_set_verbosity (ctx->engine, ctx->verbosity); - _gpgme_engine_op_sign (ctx->engine, in, out, mode, ctx->use_armor, - ctx->use_textmode, ctx->include_certs, - ctx /* FIXME */); + err = _gpgme_engine_op_sign (ctx->engine, in, out, mode, ctx->use_armor, + ctx->use_textmode, ctx->include_certs, + ctx /* FIXME */); /* And kick off the process. */ - err = _gpgme_engine_start (ctx->engine, ctx); + if (!err) + err = _gpgme_engine_start (ctx->engine, ctx); leave: if (err)