Skip to content

Commit 524e072

Browse files
committed
Add helper function to check if using Kryoptic.
Signed-off-by: Neal H. Walfield <neal@sequoia-pgp.org>
1 parent bf85b6f commit 524e072

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cryptoki/tests/common.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ pub fn is_softhsm() -> bool {
2020
get_pkcs11_path().contains("softhsm")
2121
}
2222

23+
pub fn is_kryoptic() -> bool {
24+
get_pkcs11_path().contains("kryoptic")
25+
}
26+
2327
pub fn get_pkcs11() -> Pkcs11 {
2428
Pkcs11::new(get_pkcs11_path()).unwrap()
2529
}

0 commit comments

Comments
 (0)