Fix puk change

Fix https://github.com/Nitrokey/piv-authenticator/issues/37
This commit is contained in:
Sosthène Guédon
2023-12-13 10:17:55 +01:00
parent caed9e43ac
commit e959556d26
+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)
}