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/builder.c | |
parent | 7bb9ad33da0154c9a4317f0123046eee85738349 (diff) | |
download | p11-kit-17bc43cb82320f2aba4ccb804bd8599232524c6a.tar.gz |
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/builder.c')
-rw-r--r-- | trust/builder.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/trust/builder.c b/trust/builder.c index bfbc42d..f325be6 100644 --- a/trust/builder.c +++ b/trust/builder.c @@ -322,7 +322,8 @@ type_der_cert (p11_builder *builder, { CKA_MODIFIABLE, CREATE | WANT, type_bool }, \ { CKA_PRIVATE, CREATE, type_bool }, \ { CKA_LABEL, CREATE | MODIFY | WANT, type_utf8 }, \ - { CKA_X_GENERATED, CREATE } + { CKA_X_GENERATED, CREATE }, \ + { CKA_X_ORIGIN, NONE } \ static CK_ATTRIBUTE * common_populate (p11_builder *builder, |