diff options
Diffstat (limited to '')
-rw-r--r-- | tests/t-decrypt.c | 16 | ||||
-rw-r--r-- | tests/t-sign.c | 4 | ||||
-rw-r--r-- | tests/t-verify.c | 4 |
3 files changed, 20 insertions, 4 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); diff --git a/tests/t-sign.c b/tests/t-sign.c index 4d3ed340..c09b2c96 100644 --- a/tests/t-sign.c +++ b/tests/t-sign.c @@ -66,8 +66,8 @@ main (int argc, char **argv ) err = gpgme_data_new ( &out ); fail_if_err (err); - gpgme_op_set_textmode (ctx, 1); - gpgme_op_set_armor (ctx, 1); + gpgme_set_textmode (ctx, 1); + gpgme_set_armor (ctx, 1); err = gpgme_op_sign (ctx, in, out ); fail_if_err (err); diff --git a/tests/t-verify.c b/tests/t-verify.c index bc997236..ac9e3376 100644 --- a/tests/t-verify.c +++ b/tests/t-verify.c @@ -116,7 +116,7 @@ main (int argc, char **argv ) err = gpgme_op_verify (ctx, sig, text, &status ); print_sig_stat ( status ); fail_if_err (err); - if ( (nota=gpgme_op_get_notation (ctx)) ) + if ( (nota=gpgme_get_notation (ctx)) ) printf ("---Begin Notation---\n%s---End Notation---\n", nota ); puts ("checking a manipulated message:\n"); @@ -128,7 +128,7 @@ main (int argc, char **argv ) err = gpgme_op_verify (ctx, sig, text, &status ); print_sig_stat ( status ); fail_if_err (err); - if ( (nota=gpgme_op_get_notation (ctx)) ) + if ( (nota=gpgme_get_notation (ctx)) ) printf ("---Begin Notation---\n%s---End Notation---\n", nota ); gpgme_data_release (sig); |