openpgp-card-sequoia: add Card<Admin>::set_pw_status_bytes

This commit is contained in:
Heiko Schaefer 2023-08-17 15:22:30 +02:00
parent 2601e58fe3
commit dcf98c512c
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -886,6 +886,14 @@ impl Card<Admin<'_, '_>> {
}
}
pub fn set_pw_status_bytes(
&mut self,
pw_status: &PWStatusBytes,
long: bool,
) -> Result<(), Error> {
self.card().set_pw_status_bytes(pw_status, long)
}
pub fn set_uif(&mut self, key: KeyType, policy: TouchPolicy) -> Result<(), Error> {
let uif = match key {
KeyType::Signing => self.state.tx.state.ard.uif_pso_cds()?,