openpgp-card-sequoia: add Card<Admin>::set_pw_status_bytes
This commit is contained in:
parent
2601e58fe3
commit
dcf98c512c
1 changed files with 8 additions and 0 deletions
|
@ -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> {
|
pub fn set_uif(&mut self, key: KeyType, policy: TouchPolicy) -> Result<(), Error> {
|
||||||
let uif = match key {
|
let uif = match key {
|
||||||
KeyType::Signing => self.state.tx.state.ard.uif_pso_cds()?,
|
KeyType::Signing => self.state.tx.state.ard.uif_pso_cds()?,
|
||||||
|
|
Loading…
Reference in a new issue