Lines Matching refs:sessionInfo
116 CK_SESSION_INFO sessionInfo;
358 chk_rv = C_GetSessionInfo(hSession, &sessionInfo);
361 printf(" Slot ID: %lu\n", (unsigned long) sessionInfo.slotID);
362 printf(" Dev Err: %lu\n", (unsigned long) sessionInfo.ulDeviceError);
365 if (sessionInfo.state == CKS_RO_PUBLIC_SESSION) {
367 } else if (sessionInfo.state == CKS_RO_USER_FUNCTIONS) {
369 } else if (sessionInfo.state == CKS_RW_PUBLIC_SESSION) {
371 } else if (sessionInfo.state == CKS_RW_USER_FUNCTIONS) {
373 } else if (sessionInfo.state == CKS_RO_PUBLIC_SESSION) {
376 printf("Unknown (%lu)", (unsigned long) sessionInfo.state);
380 if ((sessionInfo.flags & CKF_RW_SESSION) == CKF_RW_SESSION) {
383 if ((sessionInfo.flags & CKF_SERIAL_SESSION) == CKF_SERIAL_SESSION) {