From e7d5c6b4b04bb34172788fba5532b89e70a1f5ac Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 1 Dec 2008 20:38:32 +0000 Subject: Split headers for C file into own header. --- ckcapi-session.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'ckcapi-session.c') diff --git a/ckcapi-session.c b/ckcapi-session.c index e54fcdf..46de60a 100644 --- a/ckcapi-session.c +++ b/ckcapi-session.c @@ -20,6 +20,12 @@ #include #include "ckcapi.h" +#include "ckcapi-builtin.h" +#include "ckcapi-cert.h" +#include "ckcapi-object.h" +#include "ckcapi-session.h" +#include "ckcapi-token.h" +#include "ckcapi-trust.h" static CkCapiArray* all_sessions = NULL; @@ -573,7 +579,18 @@ gather_objects(CkCapiSession* sess, CK_ATTRIBUTE_PTR match, if(ret != CKR_OK) return ret; - /* Search for certificates */ + /* + * Search through certificates. + * + * We always do this search first. In Windows a lots hangs off + * the certificates. For example private keys are not contained + * in the same stores that certificates are in. There are a different + * set of key containers many of which can be used together + * with a certificate stored in any store. + * + * The trust objects we expose also depend on the certificates + * loaded. + */ ret = ckcapi_cert_find(sess, ocls, match, count, arr); if(ret != CKR_OK) return ret; -- cgit v1.2.3