slotIDfromSes

Synopsis

CK_SLOT_ID slotIDfromSes(CK_SESSION_HANDLE h);

Description

Extract a CK_SLOT_ID from a CK_SESSION_HANDLE. This function only works with SafeNet’s Cryptoki product because it includes an encoding of the SLOT id in the session handle. For other PKCS#11 implementations the slot ID can be obtained from the session info C_GetSessionInfo() call.