Added basic multivendor support for token information.
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user