Skip to content

Search for token objects matching a template #173

Answered by Tartopoms
Tartopoms asked this question in Q&A
Discussion options

You must be logged in to vote

Problem solved, it's all my bad.

Actually the function init_token called in init_pins is like overwriting label, and erasing current saved objects of a token.
I got confused because I used the init_pins function from cryptoki/tests/common.rs that initialize a token each time the program runs.

I let the disscussion open so you can edit the find_objects function comment

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tartopoms
Comment options

Answer selected by Tartopoms
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant