aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcus Brinkmann <[email protected]>2002-09-13 20:54:52 +0000
committerMarcus Brinkmann <[email protected]>2002-09-13 20:54:52 +0000
commit1dda423fa5ff0c3e83c3f0e0ccfa690ed7dfb975 (patch)
tree81c29eb2ee8f7603a0162998e473ca47e3eccb20
parentRegenerated. (diff)
downloadgpgme-1dda423fa5ff0c3e83c3f0e0ccfa690ed7dfb975.tar.gz
gpgme-1dda423fa5ff0c3e83c3f0e0ccfa690ed7dfb975.zip
2002-09-13 Marcus Brinkmann <[email protected]>
* keylist.c (keylist_status_handler): Do not call finish_key() here. (gpgme_op_keylist_ext_start): Set CTX->tmp_key to NULL.
-rw-r--r--gpgme/ChangeLog5
-rw-r--r--gpgme/keylist.c5
2 files changed, 8 insertions, 2 deletions
diff --git a/gpgme/ChangeLog b/gpgme/ChangeLog
index b6ffaaa3..3e90b75b 100644
--- a/gpgme/ChangeLog
+++ b/gpgme/ChangeLog
@@ -1,3 +1,8 @@
+2002-09-13 Marcus Brinkmann <[email protected]>
+
+ * keylist.c (keylist_status_handler): Do not call finish_key() here.
+ (gpgme_op_keylist_ext_start): Set CTX->tmp_key to NULL.
+
2002-09-03 Marcus Brinkmann <[email protected]>
* Makefile.am (assuan_libobjs): Remove @LTLIBOBJS@ as we link them
diff --git a/gpgme/keylist.c b/gpgme/keylist.c
index 21a6d873..6ae9b1ee 100644
--- a/gpgme/keylist.c
+++ b/gpgme/keylist.c
@@ -94,14 +94,13 @@ keylist_status_handler (GpgmeCtx ctx, GpgmeStatusCode code, char *args)
return;
test_and_allocate_result (ctx, keylist);
- switch (code)
+ switch (code)
{
case GPGME_STATUS_TRUNCATED:
ctx->result.keylist->truncated = 1;
break;
case GPGME_STATUS_EOF:
- finish_key (ctx);
if (ctx->result.keylist->truncated)
append_xml_keylistinfo (&ctx->result.keylist->xmlinfo, "1");
if (ctx->result.keylist->xmlinfo)
@@ -256,6 +255,7 @@ keylist_colon_handler (GpgmeCtx ctx, char *line)
const char *trust_info = NULL;
struct subkey_s *sk = NULL;
+ DEBUG3 ("keylist_colon_handler ctx=%p, key=%p, line=%s\n", ctx, key, line);
if (ctx->error)
return;
if (!line)
@@ -640,6 +640,7 @@ gpgme_op_keylist_ext_start (GpgmeCtx ctx, const char *pattern[],
goto leave;
gpgme_key_release (ctx->tmp_key);
+ ctx->tmp_key = NULL;
_gpgme_engine_set_status_handler (ctx->engine, keylist_status_handler, ctx);
err = _gpgme_engine_set_colon_line_handler (ctx->engine,