Fix puk change

Fix https://github.com/Nitrokey/piv-authenticator/issues/37
This commit is contained in:
Sosthène Guédon
2024-03-01 14:29:40 +01:00
committed by Nicolas Stalder
parent 4fcc29e2fa
commit f6b4f35b93
+1 -1
View File
@@ -376,7 +376,7 @@ impl Persistent {
) -> bool {
let old_puk = Bytes::from_slice(&old_value.0).expect("Convertion of static array");
let new_puk = Bytes::from_slice(&new_value.0).expect("Convertion of static array");
try_syscall!(client.change_pin(PinType::UserPin, old_puk, new_puk))
try_syscall!(client.change_pin(PinType::Puk, old_puk, new_puk))
.map(|r| r.success)
.unwrap_or(false)
}