Lines Matching refs:slotcount
128 CK_ULONG slotcount; in pkcs11_GetCriteriaSession() local
147 rv = C_GetSlotList(0, NULL, &slotcount); in pkcs11_GetCriteriaSession()
152 if (slotcount == 0) { in pkcs11_GetCriteriaSession()
158 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID)); in pkcs11_GetCriteriaSession()
163 if ((rv = C_GetSlotList(0, slot_list, &slotcount)) != CKR_OK) { in pkcs11_GetCriteriaSession()
169 for (i = 0; i < slotcount; i++) { in pkcs11_GetCriteriaSession()
176 if (i == slotcount) { in pkcs11_GetCriteriaSession()
209 CK_ULONG slotcount; in SUNW_C_GetMechSession() local
229 rv = C_GetSlotList(0, NULL, &slotcount); in SUNW_C_GetMechSession()
234 if (slotcount == 0) { in SUNW_C_GetMechSession()
240 slot_list = malloc(slotcount * sizeof (CK_SLOT_ID)); in SUNW_C_GetMechSession()
245 if ((rv = C_GetSlotList(0, slot_list, &slotcount)) != CKR_OK) { in SUNW_C_GetMechSession()
251 for (i = 0; i < slotcount; i++) { in SUNW_C_GetMechSession()
259 if (i == slotcount) { in SUNW_C_GetMechSession()