Skip to content

Commit 2e2a586

Browse files
committed
Fix bug that broke authenticating to HSM through PKCS11.
This was introduced a while back in 793ff4c.
1 parent e38d6ce commit 2e2a586

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ca.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ tcg-dice-kp-eca = 2.23.133.5.4.100.12
182182
fn passwd_to_env(env_str: &str, password: &Zeroizing<String>) -> Result<()> {
183183
use std::ops::Deref;
184184

185-
let password = Zeroizing::new(format!("0002:{}", password.deref()));
185+
let password = Zeroizing::new(format!("0002{}", password.deref()));
186186
std::env::set_var(env_str, password);
187187

188188
Ok(())

0 commit comments

Comments
 (0)