Started major overhaul of slot vendors and token vendors.

This commit is contained in:
Alessio Di Mauro
2015-07-27 17:03:29 +02:00
parent 437094b2d7
commit b9596b33f5
11 changed files with 330 additions and 159 deletions
+4 -9
View File
@@ -1,16 +1,11 @@
#ifndef UTILS_H
#define UTILS_H
#include "pkcs11t.h"
#include "vendors.h"
typedef struct {
vendor_id_t vid;
CK_SLOT_INFO info;
} ykcs11_slot_t; // TODO: move this
#include "ykcs11.h"
CK_BBOOL has_token(const ykcs11_slot_t *slot);
CK_BBOOL parse_readers(const CK_BYTE_PTR readers, const CK_ULONG len,
CK_RV parse_readers(const CK_BYTE_PTR readers, const CK_ULONG len,
ykcs11_slot_t *slots, CK_ULONG_PTR n_slots, CK_ULONG_PTR n_with_token);
CK_RV create_token(CK_BYTE_PTR p, ykcs11_slot_t *slot);
void destroy_token(ykcs11_slot_t *slot);
#endif