eid-viewer
eid-viewer library
p11.h
1 #ifndef EID_VWR_P11_H
2 #define EID_VWR_P11_H
3 
4 #ifdef WIN32
5 #include <win32.h>
6 #else
7 #include <unix.h>
8 #endif
9 #include <pkcs11t.h>
10 #include "utftranslate.h"
11 
12 #define EIDV_RV_OK 0
13 #define EIDV_RV_FAIL -1
14 
15 struct _slotdesc;
16 
17 int eid_vwr_p11_init();
18 int eid_vwr_p11_find_first_slot(CK_BBOOL with_token, CK_SLOT_ID_PTR loc, CK_ULONG_PTR slots_found);
19 int eid_vwr_p11_read_id(void*);
20 int eid_vwr_p11_read_certs(void*);
21 int eid_vwr_p11_open_session(void* slot);
22 int eid_vwr_p11_close_session();
23 int eid_vwr_p11_finalize_find();
24 int eid_vwr_p11_do_pinop(void*);
25 int eid_vwr_p11_leave_pinop();
26 int eid_vwr_p11_select_slot(CK_BBOOL automatic, CK_SLOT_ID manualslot);
27 int eid_vwr_p11_name_slots(struct _slotdesc* slots, CK_ULONG_PTR len);
28 int eid_vwr_p11_check_version(void* data);
29 #ifdef __cplusplus
30 extern "C"{
31 #endif
32 void eid_vwr_p11_to_ui(const EID_CHAR*, const void*, int);
33 #ifdef __cplusplus
34 }
35 #endif
36 
37 #endif
unsigned long slot
The number of the slot, to be used with eid_vwr_be_select_slot()
Definition: oslayer.h:23
Definition: oslayer.h:22