From 697c4dc2d26bfb41206475f39a584bb0a177d605 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Mon, 8 Dec 2008 18:34:14 +0000 Subject: Support non certificate store slots properly throughout the code. --- ckcapi-token.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ckcapi-token.c') 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; } -- cgit v1.2.3