|
Data Structures |
struct | CK_FUNCTION_LIST |
struct | key_object_t |
struct | slot_t |
struct | pkcs11_handle_t |
Defines |
#define | CK_PTR * |
#define | CK_DEFINE_FUNCTION(returnType, name) returnType name |
#define | CK_DECLARE_FUNCTION(returnType, name) returnType name |
#define | CK_DECLARE_FUNCTION_POINTER(returnType, name) returnType (* name) |
#define | CK_CALLBACK_FUNCTION(returnType, name) returnType (* name) |
#define | NULL_PTR 0 |
#define | __PASTE(x, y) x##y |
#define | CK_NEED_ARG_LIST 1 |
#define | CK_PKCS11_FUNCTION_INFO(name) extern CK_DECLARE_FUNCTION(CK_RV, name) |
#define | CK_NEED_ARG_LIST 1 |
#define | CK_PKCS11_FUNCTION_INFO(name) typedef CK_DECLARE_FUNCTION_POINTER(CK_RV, __PASTE(CK_,name)) |
#define | CK_PKCS11_FUNCTION_INFO(name) __PASTE(CK_,name) name; |
Functions |
int | load_pkcs11_module (char *module, pkcs11_handle_t *h) |
int | init_pkcs11_module (pkcs11_handle_t *h) |
void | release_pkcs11_module (pkcs11_handle_t *h) |
int | open_pkcs11_session (pkcs11_handle_t *h, unsigned int slot) |
int | pkcs11_login (pkcs11_handle_t *h, char *password) |
int | close_pkcs11_session (pkcs11_handle_t *h) |
int | get_certificates (pkcs11_handle_t *h) |
int | get_private_keys (pkcs11_handle_t *h) |
int | sign_value (pkcs11_handle_t *h, CK_BYTE *data, CK_ULONG length, CK_BYTE **signature, CK_ULONG *signature_length) |
int | get_random_value (unsigned char *data, int length) |