aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-keylist.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/t-keylist.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/t-keylist.c b/tests/t-keylist.c
index 249c21d7..a67d1ee2 100644
--- a/tests/t-keylist.c
+++ b/tests/t-keylist.c
@@ -41,7 +41,14 @@ doit ( GpgmeCtx ctx, const char *pattern )
fail_if_err (err);
while ( !(err = gpgme_op_keylist_next ( ctx, &key )) ) {
- printf ("Got key object (%p)\n", key );
+ char *p;
+ printf ("<!-- Begin key object (%p) -->\n", key );
+ p = gpgme_key_get_as_xml ( key );
+ if ( p )
+ fputs ( p, stdout );
+ else
+ fputs("<!-- Ooops: gpgme_key_get_as_xml failed -->\n", stdout );
+ printf ("<!-- End key object (%p) -->\n", key );
}
if ( err != GPGME_EOF )
fail_if_err (err);