Added basic multivendor support for token information.

This commit is contained in:
Alessio Di Mauro
2015-07-03 17:23:16 +02:00
parent 2b2fe1f9fa
commit f95c6f2f2d
7 changed files with 154 additions and 13 deletions
+20
View File
@@ -0,0 +1,20 @@
#ifndef VENDORS_H
#define VENDORS_H
#include "pkcs11.h"
typedef enum {
UNKNOWN = 0x00,
YUBICO = 0x01
} vendor_id_t;
typedef CK_VERSION (*get_version_f)(char *, int);
typedef struct {
get_version_f get_version;
} vendor_t;
vendor_id_t get_vendor_id(char *vendor_name);
vendor_t get_vendor(vendor_id_t vid);
#endif