openpgp-card-sequoia: rename set_user_interaction_flag to set_touch_policy
This commit is contained in:
parent
041228a4a2
commit
468402364a
1 changed files with 6 additions and 5 deletions
|
@ -1104,11 +1104,12 @@ impl Card<Admin<'_, '_>> {
|
||||||
self.card().set_pw_status_bytes(pw_status, long)
|
self.card().set_pw_status_bytes(pw_status, long)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn set_user_interaction_flag(
|
/// Set the touch policy for a key slot (if the card supports this
|
||||||
&mut self,
|
/// feature).
|
||||||
key: KeyType,
|
///
|
||||||
policy: TouchPolicy,
|
/// Note that the current touch policy setting (if available) can be read
|
||||||
) -> Result<(), Error> {
|
/// via [`Card<Transaction>::user_interaction_flag`].
|
||||||
|
pub fn set_touch_policy(&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()?,
|
||||||
KeyType::Decryption => self.state.tx.state.ard().uif_pso_dec()?,
|
KeyType::Decryption => self.state.tx.state.ard().uif_pso_dec()?,
|
||||||
|
|
Loading…
Reference in a new issue