You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I recently created a PR for the Krill project to switch from the pkcs11 crate to the cryptoki crate and in doing so I discovered a missing piece of functionality: the cryptoki crate has no equivalent of the pkcs11 crate `is_initialized() function.
Of course I can track whether or not I have called initialized myself but that's extra work. Or alternatively add an fn initialize_if_needed() or enable fn initalize() to tolerate being already initialized, which would prevent the caller from having to check and then call initialize to avoid getting an already initialized error.
The text was updated successfully, but these errors were encountered:
I recently created a PR for the Krill project to switch from the
pkcs11
crate to thecryptoki
crate and in doing so I discovered a missing piece of functionality: thecryptoki
crate has no equivalent of thepkcs11
crate `is_initialized() function.Of course I can track whether or not I have called initialized myself but that's extra work. Or alternatively add an
fn initialize_if_needed()
or enablefn initalize()
to tolerate being already initialized, which would prevent the caller from having to check and then call initialize to avoid getting an already initialized error.The text was updated successfully, but these errors were encountered: