CryptoAuthLib v3.7.6
Microchip CryptoAuthentication Library
 
Loading...
Searching...
No Matches
pkcs11_session.h File Reference

PKCS11 Library Session Management & Context. More...

#include "cryptoki.h"
#include "pkcs11_config.h"
#include "cal_internal.h"

Data Structures

struct  pkcs11_session_mech_ctx_s
 
struct  pkcs11_session_ctx_s
 

Typedefs

typedef struct pkcs11_session_mech_ctx_s pkcs11_session_mech_ctx
 
typedef struct pkcs11_session_mech_ctx_spkcs11_session_mech_ctx_ptr
 
typedef struct pkcs11_session_ctx_s pkcs11_session_ctx
 
typedef struct pkcs11_session_ctx_spkcs11_session_ctx_ptr
 

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_session_get_info (CK_SESSION_HANDLE hSession, CK_SESSION_INFO_PTR pInfo)
 Obtains information about a particular session.
 
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_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)
 
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)
 

Detailed Description

PKCS11 Library Session Management & Context.

Typedef Documentation

◆ pkcs11_session_ctx

Session Context