diff options
author | Werner Koch <[email protected]> | 2001-09-03 18:41:53 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2001-09-03 18:41:53 +0000 |
commit | 5b3d8162b493332971c00b21aa0ac67faa4ff85f (patch) | |
tree | df8f7aa953acdab62f120f375cd1b9128b603454 /tests/t-encrypt.c | |
parent | Fixed long standing listing bug. (diff) | |
download | gpgme-5b3d8162b493332971c00b21aa0ac67faa4ff85f.tar.gz gpgme-5b3d8162b493332971c00b21aa0ac67faa4ff85f.zip |
Some changes
Diffstat (limited to '')
-rw-r--r-- | tests/t-encrypt.c | 15 |
1 files changed, 15 insertions, 0 deletions
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 @@ -33,6 +33,20 @@ } while(0) static void +print_op_info (GpgmeCtx c) +{ + char *s = gpgme_get_op_info (c, 0); + + if (!s) + puts ("<!-- no operation info available -->"); + else { + puts (s); + free (s); + } +} + + +static void print_data ( GpgmeData dh ) { char buf[100]; @@ -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); |