aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>2001-08-28 11:11:10 +0000
committerWerner Koch <[email protected]>2001-08-28 11:11:10 +0000
commit6c7ce7551dbcee46d4b69ea6e71934d36a006bd9 (patch)
treeab2d1489d2017e115d9379d786fad85caf9825ab /tests
parentone more file (diff)
downloadgpgme-6c7ce7551dbcee46d4b69ea6e71934d36a006bd9.tar.gz
gpgme-6c7ce7551dbcee46d4b69ea6e71934d36a006bd9.zip
Typo fixes and new gpgme_get_op_info
Diffstat (limited to '')
-rw-r--r--tests/t-sign.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/t-sign.c b/tests/t-sign.c
index f57a1eaa..65822c9d 100644
--- a/tests/t-sign.c
+++ b/tests/t-sign.c
@@ -33,6 +33,19 @@
} 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];
@@ -95,6 +108,7 @@ main (int argc, char **argv )
fail_if_err (err);
fflush (NULL);
fputs ("Begin Result:\n", stdout );
+ print_op_info (ctx);
print_data (out);
fputs ("End Result.\n", stdout );
gpgme_data_release (out);
@@ -106,6 +120,7 @@ main (int argc, char **argv )
err = gpgme_op_sign (ctx, in, out, GPGME_SIG_MODE_DETACH );
fail_if_err (err);
fflush (NULL);
+ print_op_info (ctx);
fputs ("Begin Result:\n", stdout );
print_data (out);
fputs ("End Result.\n", stdout );
@@ -119,6 +134,7 @@ main (int argc, char **argv )
err = gpgme_op_sign (ctx, in, out, GPGME_SIG_MODE_CLEAR );
fail_if_err (err);
fflush (NULL);
+ print_op_info (ctx);
fputs ("Begin Result:\n", stdout );
print_data (out);
fputs ("End Result.\n", stdout );