summaryrefslogtreecommitdiff
path: root/ckcapi-token.c
diff options
context:
space:
mode:
authorStef Walter <stef@memberwebs.com>2008-12-02 20:56:41 +0000
committerStef Walter <stef@memberwebs.com>2008-12-02 20:56:41 +0000
commit4b5eb21486d188f57f2bf7a91cd5da225dd3e0d1 (patch)
treee47a8eb115115d038e97a4d1ab5693a659004d5c /ckcapi-token.c
parentc92e343c53743180c8854cb10da8bf522dd43d76 (diff)
Add concept of slots without any certificates.
Diffstat (limited to 'ckcapi-token.c')
-rw-r--r--ckcapi-token.c15
1 files changed, 8 insertions, 7 deletions
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) \