From ff009f8a671e6ddd02a684bb1707a2a797fe4600 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 12 Mar 2013 18:03:25 +0100 Subject: trust: Refactor to include concept of the index * The index holds PKCS#11 objects whether for the token or for the session. * The index provides hook for a builder to expand or validate objects being added to the index. * In addition theres a change hook so that a builder can maintain state between objects, such as the compat NSS trust objects. https://bugs.freedesktop.org/show_bug.cgi?id=62329 --- trust/token.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'trust/token.h') diff --git a/trust/token.h b/trust/token.h index 599e982..43cebaa 100644 --- a/trust/token.h +++ b/trust/token.h @@ -36,6 +36,7 @@ #define P11_TOKEN_H_ #include "dict.h" +#include "index.h" #include "pkcs11.h" typedef struct _p11_token p11_token; @@ -47,7 +48,7 @@ void p11_token_free (p11_token *token); int p11_token_load (p11_token *token); -p11_dict * p11_token_objects (p11_token *token); +p11_index * p11_token_index (p11_token *token); const char * p11_token_get_path (p11_token *token); -- cgit v1.1