Cryptographic Token Interface Standard

PKCS#11


CK_SESSION_INFO Reference

CK_SESSION_INFO; CK_SESSION_INFO_PTR

CK_SESSION_INFO provides information about a session. More...


Data Fields

CK_SLOT_ID slotID
 ID of the slot that interfaces with the token. More...

CK_STATE state
 the state of the session. More...

CK_FLAGS flags
 bit flags that define the type of session; the flags are defined below. More...

CK_ULONG ulDeviceError
 an error code defined by the cryptographic device. More...


Detailed Description

CK_SESSION_INFO; CK_SESSION_INFO_PTR

CK_SESSION_INFO provides information about a session. It is defined as follows:
slotID ID of the slot that interfaces with the token
state the state of the session
flags bit flags that define the type of session; the flags are defined below
ulDeviceError an error code defined by the cryptographic device. Used for errors not covered by Cryptoki.

The following table defines the flags field:

Table 11, Session Information Flags
Bit Flag Mask Meaning
CKF_RW_SESSION 0x00000002 TRUE if the session is read/write; FALSE if the session is read-only
CKF_SERIAL_SESSION 0x00000004 This flag is provided for backward compatibility, and should always be set to TRUE

CK_SESSION_INFO_PTR is a pointer to a CK_SESSION_INFO.


Field Documentation

CK_SLOT_ID slotID
 

ID of the slot that interfaces with the token.

CK_STATE state
 

the state of the session.

CK_FLAGS flags
 

bit flags that define the type of session; the flags are defined below.

CK_ULONG ulDeviceError
 

an error code defined by the cryptographic device. Used for errors not covered by Cryptoki.


RSA Security Inc. Public-Key Cryptography Standards - PKCS#11 - v210