From 5b3d8162b493332971c00b21aa0ac67faa4ff85f Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Mon, 3 Sep 2001 18:41:53 +0000 Subject: Some changes --- tests/t-encrypt.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'tests/t-encrypt.c') diff --git a/tests/t-encrypt.c b/tests/t-encrypt.c index bbb5557b..02ef11fa 100644 --- a/tests/t-encrypt.c +++ b/tests/t-encrypt.c @@ -32,6 +32,20 @@ exit (1); } \ } while(0) +static void +print_op_info (GpgmeCtx c) +{ + char *s = gpgme_get_op_info (c, 0); + + if (!s) + puts (""); + else { + puts (s); + free (s); + } +} + + static void print_data ( GpgmeData dh ) { @@ -84,6 +98,7 @@ main (int argc, char **argv ) err = gpgme_op_encrypt (ctx, rset, in, out ); + print_op_info (ctx); fail_if_err (err); fflush (NULL); -- cgit v1.2.3