From 7bb9ad33da0154c9a4317f0123046eee85738349 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 28 Jun 2013 13:00:02 +0200 Subject: 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. --- trust/extract.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'trust/extract.c') diff --git a/trust/extract.c b/trust/extract.c index 10f45df..d5ceb13 100644 --- a/trust/extract.c +++ b/trust/extract.c @@ -440,7 +440,7 @@ p11_trust_extract (int argc, limit_modules_if_necessary (modules, ex.flags); - iter = p11_kit_iter_new (uri); + iter = p11_kit_iter_new (uri, 0); p11_kit_iter_add_callback (iter, p11_extract_info_load_filter, &ex, NULL); p11_kit_iter_add_filter (iter, match, p11_attrs_count (match)); -- cgit v1.1