diff options
author | Stef Walter <stef@thewalter.net> | 2013-06-28 13:00:02 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-03 10:29:24 +0200 |
commit | 7bb9ad33da0154c9a4317f0123046eee85738349 (patch) | |
tree | a765e4aa3f7ccfe4151eaeb4b9b334847ce97d62 /trust/tests/frob-nss-trust.c | |
parent | 7eabbee227f09cc4ff9e472520f03bba1e35596b (diff) |
iter: Add iteration mode where session is not busy
In order to use the session we are iterating on for other tasks
such as other C_FindObject() calls, we need to make sure that
it's not in the middle of a find operation. Finish up the
complete find operation in advance of returning objects from
a session.
Make this the default mode. The previous behavior remains
as an option. Add tests.
Diffstat (limited to 'trust/tests/frob-nss-trust.c')
-rw-r--r-- | trust/tests/frob-nss-trust.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trust/tests/frob-nss-trust.c b/trust/tests/frob-nss-trust.c index a81b5e2..fd74db7 100644 --- a/trust/tests/frob-nss-trust.c +++ b/trust/tests/frob-nss-trust.c @@ -108,7 +108,7 @@ dump_trust_module (const char *path) rv = p11_kit_module_initialize (module); return_val_if_fail (rv == CKR_OK, 1); - iter = p11_kit_iter_new (NULL); + iter = p11_kit_iter_new (NULL, 0); p11_kit_iter_add_filter (iter, &match, 1); p11_kit_iter_begin_with (iter, module, 0, 0); @@ -168,7 +168,7 @@ compare_trust_modules (const char *path1, rv = p11_kit_module_initialize (module2); return_val_if_fail (rv == CKR_OK, 1); - iter = p11_kit_iter_new (NULL); + iter = p11_kit_iter_new (NULL, 0); p11_kit_iter_add_filter (iter, &match, 1); p11_kit_iter_begin_with (iter, module1, 0, 0); @@ -182,7 +182,7 @@ compare_trust_modules (const char *path1, p11_attrs_purge (check); /* Check that this object exists */ - iter2 = p11_kit_iter_new (NULL); + iter2 = p11_kit_iter_new (NULL, 0); p11_kit_iter_add_filter (iter2, check, p11_attrs_count (check)); p11_kit_iter_begin_with (iter2, module2, 0, 0); rv = p11_kit_iter_next (iter2); |