We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 46c423e commit 3a3f8bdCopy full SHA for 3a3f8bd
cryptoki/tests/common.rs cryptoki/tests/common/mod.rscryptoki/tests/common.rs renamed to cryptoki/tests/common/mod.rs
@@ -16,10 +16,12 @@ fn get_pkcs11_path() -> String {
16
.unwrap_or_else(|_| "/usr/local/lib/softhsm/libsofthsm2.so".to_string())
17
}
18
19
+#[allow(dead_code)]
20
pub fn is_softhsm() -> bool {
21
get_pkcs11_path().contains("softhsm")
22
23
24
25
pub fn is_kryoptic() -> bool {
26
get_pkcs11_path().contains("kryoptic")
27
@@ -51,6 +53,7 @@ pub fn init_pins() -> (Pkcs11, Slot) {
51
53
(pkcs11, slot)
52
54
55
56
57
pub fn get_firmware_version(pkcs11: &Pkcs11, slot: Slot) -> (u8, u8) {
58
let info = pkcs11.get_slot_info(slot).unwrap();
59
0 commit comments