diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-12 18:03:25 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-15 17:54:55 +0100 |
commit | ff009f8a671e6ddd02a684bb1707a2a797fe4600 (patch) | |
tree | 3f3d5162a64f0addb0ad2d1acba91eae46f8ef1e /trust/tests/frob-token.c | |
parent | 3fc6365093ad07b2eb5ef859093c5c5eb56ee700 (diff) |
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
Diffstat (limited to 'trust/tests/frob-token.c')
-rw-r--r-- | trust/tests/frob-token.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trust/tests/frob-token.c b/trust/tests/frob-token.c index 976fb2b..622dad4 100644 --- a/trust/tests/frob-token.c +++ b/trust/tests/frob-token.c @@ -44,7 +44,7 @@ main (int argc, char *argv[]) { p11_token *token; - p11_dict *objects; + p11_index *index; int count; if (argc != 2) { @@ -56,8 +56,8 @@ main (int argc, count = p11_token_load (token); printf ("%d files loaded\n", count); - objects = p11_token_objects (token); - printf ("%d objects loaded\n", p11_dict_size (objects)); + index = p11_token_index (token); + printf ("%d objects loaded\n", p11_index_size (index)); p11_token_free (token); return 0; |