-
Notifications
You must be signed in to change notification settings - Fork 84
Closed
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmediumEffort labelEffort label
Description
Pkcs11::get_slots_with_token
, Pkcs11::get_all_slots
and Pkcs11::get_mechanism_list
currently truncate returned lists to account for changed sizes between querying the size and getting the list, a typical race condition.
There are two problems with this currently:
Vec::resize
is used instead ofVec::truncate
forPkcs11::get_slots_with_token
andPkcs11::get_all_slots
- Lists can also increase in size, which returns an error, it might be better to put it in a
loop
until the correct size is established
hug-dev
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workinggood first issueGood for newcomersGood for newcomersmediumEffort labelEffort label