diff options
author | Stef Walter <stef@thewalter.net> | 2013-06-28 13:27:42 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2013-07-03 11:46:27 +0200 |
commit | 17bc43cb82320f2aba4ccb804bd8599232524c6a (patch) | |
tree | e7ddda708713d052b991a6592c606ba7260f8ec8 /trust/parser.h | |
parent | 7bb9ad33da0154c9a4317f0123046eee85738349 (diff) |
trust: Implement reloading of token data
* Reload token data whenever a new session is opened.
* Only reload files/directories that have changed.
* Move duplicate anchor/blacklist detection logic into
the extract code. This is in line with the approach
being discussed on the mailing lists and spec document.
* New internal attribute CKA_X_ORIGIN set on all objects
so we can track where an object came from, and replace
it when reloaded.
In general this is a prerequisite for modification of objects
reload before modify is necessary to prevent multiple callers
clobbering each other's changes.
Diffstat (limited to 'trust/parser.h')
-rw-r--r-- | trust/parser.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/trust/parser.h b/trust/parser.h index ca41d26..f956fb9 100644 --- a/trust/parser.h +++ b/trust/parser.h @@ -55,8 +55,7 @@ enum { typedef struct _p11_parser p11_parser; -p11_parser * p11_parser_new (p11_index *index, - p11_asn1_cache *asn1_cache); +p11_parser * p11_parser_new (p11_asn1_cache *asn1_cache); void p11_parser_free (p11_parser *parser); @@ -70,4 +69,6 @@ int p11_parse_file (p11_parser *parser, const char *filename, int flags); -#endif +p11_array * p11_parser_parsed (p11_parser *parser); + +#endif /* P11_PARSER_H_ */ |