2001-12-15 Marcus Brinkmann <marcus@g10code.de>

* gpgsm/t-keylist.c (check_two_contexts): Set protocols.
This commit is contained in:
Marcus Brinkmann 2001-12-15 14:13:18 +00:00
parent 21b09f74e6
commit 5e667d3c1d
2 changed files with 13 additions and 3 deletions

View File

@ -1,3 +1,7 @@
2001-12-15 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-keylist.c (check_two_contexts): Set protocols.
2001-12-14 Marcus Brinkmann <marcus@g10code.de> 2001-12-14 Marcus Brinkmann <marcus@g10code.de>
* gpgsm/t-sign.c: New file. * gpgsm/t-sign.c: New file.

View File

@ -105,10 +105,16 @@ check_two_contexts (void)
GpgmeCtx ctx1, ctx2; GpgmeCtx ctx1, ctx2;
GpgmeKey key; GpgmeKey key;
err = gpgme_new(&ctx1); fail_if_err (err); err = gpgme_new(&ctx1);
err = gpgme_op_keylist_start(ctx1, "", 1); fail_if_err (err); fail_if_err (err);
gpgme_set_protocol (ctx1, GPGME_PROTOCOL_CMS);
err = gpgme_op_keylist_start(ctx1, "", 1);
fail_if_err (err);
err = gpgme_new(&ctx2); fail_if_err (err); err = gpgme_new(&ctx2); fail_if_err (err);
err = gpgme_op_keylist_start(ctx2, "", 1); fail_if_err (err); gpgme_set_protocol (ctx2, GPGME_PROTOCOL_CMS);
err = gpgme_op_keylist_start(ctx2, "", 1);
fail_if_err (err);
while ( (err=gpgme_op_keylist_next(ctx2, &key)) != GPGME_EOF) { while ( (err=gpgme_op_keylist_next(ctx2, &key)) != GPGME_EOF) {
gpgme_key_release (key); gpgme_key_release (key);