diff options
author | Werner Koch <[email protected]> | 2000-11-20 20:17:36 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2000-11-20 20:17:36 +0000 |
commit | f9a167c516c8bf5f9dfc076fa51eb60dc96c86fb (patch) | |
tree | 6247d32de5c7100587b7c01841fe3a877504e4a8 /tests/t-decrypt.c | |
parent | configuration changes (diff) | |
download | gpgme-f9a167c516c8bf5f9dfc076fa51eb60dc96c86fb.tar.gz gpgme-f9a167c516c8bf5f9dfc076fa51eb60dc96c86fb.zip |
Does some basic tasks.V0-1-0
Diffstat (limited to '')
-rw-r--r-- | tests/t-decrypt.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/t-decrypt.c b/tests/t-decrypt.c index bf96112d..f98748da 100644 --- a/tests/t-decrypt.c +++ b/tests/t-decrypt.c @@ -50,6 +50,17 @@ print_data ( GpgmeData dh ) fail_if_err (err); } +#if 0 +static GpgmeData +passphrase_cb ( void *opaque, const char *description ) +{ + GpgmeData dh; + + assert (NULL); + gpgme_data_new_from_mem ( &dh, "abc", 3, 0 ); + return dh; +} +#endif static char * mk_fname ( const char *fname ) @@ -79,6 +90,11 @@ main (int argc, char **argv ) do { err = gpgme_new (&ctx); fail_if_err (err); +#if 0 + if ( !getenv("GPG_AGENT_INFO") { + gpgme_set_passphrase_cb ( ctx, passphrase_cb, NULL ); + } +#endif err = gpgme_data_new_from_file ( &in, cipher_1_asc, 1 ); fail_if_err (err); |