summaryrefslogtreecommitdiff
path: root/trust/tests/test-openssl.c
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2013-06-28 13:00:02 +0200
committerStef Walter <stef@thewalter.net>2013-07-03 10:29:24 +0200
commit7bb9ad33da0154c9a4317f0123046eee85738349 (patch)
treea765e4aa3f7ccfe4151eaeb4b9b334847ce97d62 /trust/tests/test-openssl.c
parent7eabbee227f09cc4ff9e472520f03bba1e35596b (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/test-openssl.c')
-rw-r--r--trust/tests/test-openssl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/trust/tests/test-openssl.c b/trust/tests/test-openssl.c
index 7479812..93f8692 100644
--- a/trust/tests/test-openssl.c
+++ b/trust/tests/test-openssl.c
@@ -78,7 +78,7 @@ setup (void *unused)
rv = test.module.C_Initialize (NULL);
assert_num_eq (CKR_OK, rv);
- test.iter = p11_kit_iter_new (NULL);
+ test.iter = p11_kit_iter_new (NULL, 0);
p11_extract_info_init (&test.ex);