+5
-2
@@ -198,14 +198,17 @@ CK_DEFINE_FUNCTION(CK_RV, C_GetSlotList)(
|
|||||||
return CKR_CRYPTOKI_NOT_INITIALIZED;
|
return CKR_CRYPTOKI_NOT_INITIALIZED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pSlotList == NULL_PTR) {
|
if (pulCount) {
|
||||||
// Just return the number of slots
|
|
||||||
*pulCount = n_slots;
|
*pulCount = n_slots;
|
||||||
|
|
||||||
if (tokenPresent)
|
if (tokenPresent)
|
||||||
*pulCount = n_slots_with_token;
|
*pulCount = n_slots_with_token;
|
||||||
else
|
else
|
||||||
*pulCount = n_slots;
|
*pulCount = n_slots;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (pSlotList == NULL_PTR) {
|
||||||
|
// Just return the number of slots
|
||||||
|
|
||||||
DOUT;
|
DOUT;
|
||||||
return CKR_OK;
|
return CKR_OK;
|
||||||
|
|||||||
Reference in New Issue
Block a user