From 1daca6e732ce20ed980b4a4518682139e34138dc Mon Sep 17 00:00:00 2001 From: Marcus Brinkmann Date: Sat, 15 Dec 2001 14:13:18 +0000 Subject: [PATCH] 2001-12-15 Marcus Brinkmann * gpgsm/t-keylist.c (check_two_contexts): Set protocols. --- trunk/tests/ChangeLog | 4 ++++ trunk/tests/gpgsm/t-keylist.c | 12 +++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/trunk/tests/ChangeLog b/trunk/tests/ChangeLog index 530ae26..b86c81c 100644 --- a/trunk/tests/ChangeLog +++ b/trunk/tests/ChangeLog @@ -1,3 +1,7 @@ +2001-12-15 Marcus Brinkmann + + * gpgsm/t-keylist.c (check_two_contexts): Set protocols. + 2001-12-14 Marcus Brinkmann * gpgsm/t-sign.c: New file. diff --git a/trunk/tests/gpgsm/t-keylist.c b/trunk/tests/gpgsm/t-keylist.c index 9ead110..7aafd84 100644 --- a/trunk/tests/gpgsm/t-keylist.c +++ b/trunk/tests/gpgsm/t-keylist.c @@ -105,10 +105,16 @@ check_two_contexts (void) GpgmeCtx ctx1, ctx2; GpgmeKey key; - err = gpgme_new(&ctx1); fail_if_err (err); - err = gpgme_op_keylist_start(ctx1, "", 1); fail_if_err (err); + err = gpgme_new(&ctx1); + 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_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) { gpgme_key_release (key); -- 2.26.2