From 6b4ca13dd4b1d4ba5b3dca84257fda2fcac3d4b3 Mon Sep 17 00:00:00 2001 From: Werner Koch Date: Tue, 19 Dec 2000 10:07:32 +0000 Subject: Add progress CB and subkey listing --- tests/t-genkey.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tests/t-genkey.c') 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 = "\n" "Key-Type: DSA\n" "Key-Length: 1024\n" -- cgit v1.2.3