Added utils files.

This commit is contained in:
Alessio Di Mauro
2015-07-15 14:19:40 +02:00
parent 9bd5bc5718
commit 94b812d081
2 changed files with 78 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#ifndef UTILS_H
#define UTILS_H
#include "pkcs11.h"
#include "vendors.h"
typedef struct {
vendor_id_t vid;
CK_SLOT_INFO info;
} ykcs11_slot_t; // TODO: move this
CK_BBOOL has_token(const ykcs11_slot_t *slot);
CK_BBOOL 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);
#endif