From 4b5eb21486d188f57f2bf7a91cd5da225dd3e0d1 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 2 Dec 2008 20:56:41 +0000 Subject: Add concept of slots without any certificates. --- ckcapi-token.c | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) (limited to 'ckcapi-token.c') diff --git a/ckcapi-token.c b/ckcapi-token.c index c0a6977..acebd16 100644 --- a/ckcapi-token.c +++ b/ckcapi-token.c @@ -35,13 +35,14 @@ SlotInfo; #define SLOT_OFFSET 0x00001000 static const SlotInfo slot_info[] = { - { "My", "Personal Certificates", CKCAPI_SLOT_TRUSTED }, - { "AddressBook", "Address Book Certificates", 0 }, - { "CA", "Certificate Authorities", CKCAPI_SLOT_CA }, - { "Root", "Root Authorities", CKCAPI_SLOT_TRUSTED | CKCAPI_SLOT_CA }, - { "Trust", "Trust", 0 }, - { "TrustedPeople", "Trusted People", CKCAPI_SLOT_TRUSTED }, - { "AuthRoot", "Auth Root", 0 }, + { "My", "Personal Certificates", CKCAPI_SLOT_TRUSTED | CKCAPI_SLOT_CERTS }, + { "AddressBook", "Address Book Certificates", CKCAPI_SLOT_CERTS }, + { "CA", "Certificate Authorities", CKCAPI_SLOT_CA | CKCAPI_SLOT_CERTS}, + { "Root", "Root Authorities", CKCAPI_SLOT_TRUSTED | CKCAPI_SLOT_CA | CKCAPI_SLOT_CERTS}, + { "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 } }; #define SLOT_TO_OFFSET(slot) \ -- cgit v1.2.3