From 80303340701c2cba78937193084f3d716b883b55 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 19 Mar 2013 19:03:12 +0100 Subject: trust: Use descriptive labels for tokens Try to determine which one is the system trust input token, and which one is the default token by using datadir and sysconfdir respectively. https://bugs.freedesktop.org/show_bug.cgi?id=62534 --- trust/token.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'trust/token.h') diff --git a/trust/token.h b/trust/token.h index 43cebaa..d7375e7 100644 --- a/trust/token.h +++ b/trust/token.h @@ -42,7 +42,8 @@ typedef struct _p11_token p11_token; p11_token * p11_token_new (CK_SLOT_ID slot, - const char *path); + const char *path, + const char *label); void p11_token_free (p11_token *token); @@ -52,6 +53,8 @@ p11_index * p11_token_index (p11_token *token); const char * p11_token_get_path (p11_token *token); +const char * p11_token_get_label (p11_token *token); + CK_SLOT_ID p11_token_get_slot (p11_token *token); #endif /* P11_TOKEN_H_ */ -- cgit v1.1