summaryrefslogtreecommitdiff
path: root/ckcapi-token.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-08 18:34:14 +0000
committerStef Walter <stef@memberwebs.com>2008-12-08 18:34:14 +0000
commit697c4dc2d26bfb41206475f39a584bb0a177d605 (patch)
tree4e9a5d1a8e6605835c09e583542a53a92cc78262 /ckcapi-token.c
parentb81f8c4510eab19a108673578af8dbe306c42532 (diff)
Support non certificate store slots properly throughout the code.
Diffstat (limited to 'ckcapi-token.c')
-rw-r--r--ckcapi-token.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/ckcapi-token.c b/ckcapi-token.c
index acebd16..a2beb74 100644
--- a/ckcapi-token.c
+++ b/ckcapi-token.c
@@ -42,7 +42,7 @@ static const SlotInfo slot_info[] = {
{ "Trust", "Trust", CKCAPI_SLOT_CERTS },
{ "TrustedPeople", "Trusted People", CKCAPI_SLOT_TRUSTED | CKCAPI_SLOT_CERTS },
{ "AuthRoot", "Auth Root", CKCAPI_SLOT_CERTS },
- { "", "All User Keys", CKCAPI_SLOT_ANYKEY }
+ { NULL, "All User Keys", CKCAPI_SLOT_ANYKEY }
};
#define SLOT_TO_OFFSET(slot) \
@@ -85,7 +85,6 @@ ckcapi_token_get_store_name(CK_SLOT_ID slot)
{
unsigned int offset = SLOT_TO_OFFSET(slot);
ASSERT(ckcapi_token_is_valid(slot));
- ASSERT(slot_info[offset].capi_store);
return slot_info[offset].capi_store;
}