aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2000-11-10 20:56:02 +0000
committerWerner Koch <[email protected]>2000-11-10 20:56:02 +0000
commitf14941f072e35f2cd04a5733435bb0eeb8b7399f (patch)
treec9aae72947f13db23a8d68dcdfce6776a60abaf8 /tests
parentStarted with --list-key (diff)
downloadgpgme-f14941f072e35f2cd04a5733435bb0eeb8b7399f.tar.gz
gpgme-f14941f072e35f2cd04a5733435bb0eeb8b7399f.zip
keylist does now return objects.
Diffstat (limited to '')
-rw-r--r--tests/t-keylist.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/t-keylist.c b/tests/t-keylist.c
index 43ad3237..ba47d39c 100644
--- a/tests/t-keylist.c
+++ b/tests/t-keylist.c
@@ -35,10 +35,16 @@ static void
doit ( GpgmeCtx ctx, const char *pattern )
{
GpgmeError err;
+ GpgmeKey key;
err = gpgme_keylist_start (ctx, pattern, 0 );
fail_if_err (err);
- gpgme_wait (ctx, 1);
+
+ while ( !(err = gpgme_keylist_next ( ctx, &key )) ) {
+ printf ("Got key object (%p)\n", key );
+ }
+ if ( err != GPGME_EOF )
+ fail_if_err (err);
}