Initial work to add object handling.

This commit is contained in:
Alessio Di Mauro
2015-07-20 17:04:39 +02:00
parent b71cb628ea
commit fa909fca30
11 changed files with 543 additions and 10 deletions
+5
View File
@@ -2,6 +2,7 @@
#define VENDORS_H
#include "pkcs11.h"
#include "objects.h"
typedef enum {
UNKNOWN = 0x00,
@@ -21,6 +22,8 @@ typedef CK_RV (*get_t_serial_f)(CK_CHAR_PTR, CK_ULONG);
typedef CK_RV (*get_t_mechanisms_num_f)(CK_ULONG_PTR);
typedef CK_RV (*get_t_mechanism_list_f)(CK_MECHANISM_TYPE_PTR, CK_ULONG);
typedef CK_RV (*get_t_mechanism_info_f)(CK_MECHANISM_TYPE, CK_MECHANISM_INFO_PTR);
typedef CK_RV (*get_t_objects_num_f)(CK_ULONG_PTR);
typedef CK_RV (*get_t_object_list_f)(piv_obj_id_t *, CK_ULONG);
typedef struct {
@@ -37,6 +40,8 @@ typedef struct {
get_t_mechanisms_num_f get_token_mechanisms_num;
get_t_mechanism_list_f get_token_mechanism_list;
get_t_mechanism_info_f get_token_mechanism_info;
get_t_objects_num_f get_token_objects_num;
get_t_object_list_f get_token_object_list;
} vendor_t;
vendor_id_t get_vendor_id(char *vendor_name);