PKCS11 Library Session Handling. More...
#include "cryptoauthlib.h"
#include "host/atca_host.h"
#include "pkcs11_config.h"
#include "pkcs11_debug.h"
#include "pkcs11_session.h"
#include "pkcs11_token.h"
#include "pkcs11_init.h"
#include "pkcs11_slot.h"
#include "pkcs11_object.h"
#include "pkcs11_os.h"
#include "pkcs11_util.h"
#include "pkcs11_key.h"
#include "pkcs11_cert.h"
Functions | |
pkcs11_session_ctx_ptr | pkcs11_get_session_context (CK_SESSION_HANDLE hSession) |
CK_RV | pkcs11_session_check (pkcs11_session_ctx_ptr *pSession, CK_SESSION_HANDLE hSession) |
Check if the session is initialized properly. | |
CK_RV | pkcs11_reserve_resource (pkcs11_lib_ctx_ptr pContext, pkcs11_session_ctx_ptr pSession, uint8_t resource) |
CK_RV | pkcs11_release_resource (pkcs11_lib_ctx_ptr pContext, pkcs11_session_ctx_ptr pSession, uint8_t resource) |
CK_RV | pkcs11_session_open (CK_SLOT_ID slotID, CK_FLAGS flags, CK_VOID_PTR pApplication, CK_NOTIFY notify, CK_SESSION_HANDLE_PTR phSession) |
CK_RV | pkcs11_session_close (CK_SESSION_HANDLE hSession) |
CK_RV | pkcs11_session_closeall (CK_SLOT_ID slotID) |
Close all sessions for a given slot - not actually all open sessions. | |
CK_RV | pkcs11_session_get_info (CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo) |
Obtains information about a particular session. | |
CK_RV | pkcs11_session_login (CK_SESSION_HANDLE hSession, CK_USER_TYPE userType, CK_UTF8CHAR_PTR pPin, CK_ULONG ulPinLen) |
CK_RV | pkcs11_session_logout (CK_SESSION_HANDLE hSession) |
PKCS11 Library Session Handling.