diff options
| author | Werner Koch <[email protected]> | 2000-12-19 10:07:32 +0000 | 
|---|---|---|
| committer | Werner Koch <[email protected]> | 2000-12-19 10:07:32 +0000 | 
| commit | 6b4ca13dd4b1d4ba5b3dca84257fda2fcac3d4b3 (patch) | |
| tree | 2433d315cc83875be398157bcfd5a5b60bd3bc73 /tests/t-genkey.c | |
| parent | Add key generation (diff) | |
| download | gpgme-6b4ca13dd4b1d4ba5b3dca84257fda2fcac3d4b3.tar.gz gpgme-6b4ca13dd4b1d4ba5b3dca84257fda2fcac3d4b3.zip | |
Add progress CB and subkey listing
Diffstat (limited to 'tests/t-genkey.c')
| -rw-r--r-- | tests/t-genkey.c | 9 | 
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" | 
