Hide private objects only when not logged in

This commit is contained in:
Alexander 2020-09-11 23:18:12 +03:00 committed by Frank Morgner
parent d85610b29b
commit 7296210224
1 changed files with 1 additions and 1 deletions

View File

@ -375,7 +375,7 @@ C_FindObjectsInit(CK_SESSION_HANDLE hSession, /* the session's handle */
/* Check whether we should hide private objects */
hide_private = 0;
if ((slot->login_user != CKU_SO) && (slot->login_user != CKU_USER) && (slot->token_info.flags & CKF_LOGIN_REQUIRED))
if ((slot->login_user == -1) && (slot->token_info.flags & CKF_LOGIN_REQUIRED))
hide_private = 1;
/* For each object in token do */