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/index.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/index.h')
-rw-r--r-- | trust/index.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/trust/index.h b/trust/index.h index a221178..2f44d0c 100644 --- a/trust/index.h +++ b/trust/index.h @@ -38,6 +38,7 @@ #include "array.h" #include "compat.h" #include "pkcs11.h" +#include "pkcs11x.h" /* * A boolean value which denotes whether we auto generated @@ -48,6 +49,11 @@ */ #define CKA_X_GENERATED (CKA_X_VENDOR + 8000) +/* + * A string pointing to the filename from which this was loaded. + */ +#define CKA_X_ORIGIN (CKA_X_VENDOR + 8001) + typedef struct _p11_index p11_index; typedef CK_RV (* p11_index_build_cb) (void *data, |