aboutsummaryrefslogtreecommitdiffstats
path: root/tests/t-genkey.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/t-genkey.c')
-rw-r--r--tests/t-genkey.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/t-genkey.c b/tests/t-genkey.c
index 710dfa0b..d22b95ea 100644
--- a/tests/t-genkey.c
+++ b/tests/t-genkey.c
@@ -32,6 +32,13 @@
} while(0)
+static void
+progress ( void *self, const char *what, int type, int current, int total)
+{
+ fprintf (stderr, "progress `%s' %d %d %d\n", what, type, current, total);
+}
+
+
int
main (int argc, char **argv )
{
@@ -45,6 +52,8 @@ main (int argc, char **argv )
err = gpgme_new (&ctx);
fail_if_err (err);
+ gpgme_set_progress_cb (ctx, progress, NULL);
+
format = "<GnupgKeyParms format=\"internal\">\n"
"Key-Type: DSA\n"
"Key-Length: 1024\n"