Fixed issue with C_FindObjectsInit, when CKU_SO does not see private objects, but CKU_USER see them
This commit is contained in:
parent
40da5cace2
commit
d85610b29b
|
@ -375,7 +375,7 @@ C_FindObjectsInit(CK_SESSION_HANDLE hSession, /* the session's handle */
|
||||||
|
|
||||||
/* Check whether we should hide private objects */
|
/* Check whether we should hide private objects */
|
||||||
hide_private = 0;
|
hide_private = 0;
|
||||||
if (slot->login_user != CKU_USER && (slot->token_info.flags & CKF_LOGIN_REQUIRED))
|
if ((slot->login_user != CKU_SO) && (slot->login_user != CKU_USER) && (slot->token_info.flags & CKF_LOGIN_REQUIRED))
|
||||||
hide_private = 1;
|
hide_private = 1;
|
||||||
|
|
||||||
/* For each object in token do */
|
/* For each object in token do */
|
||||||
|
|
Loading…
Reference in New Issue