openpgp-card-sequoia: rename uif->user_interaction_flag

This commit is contained in:
Heiko Schaefer 2023-09-03 22:43:22 +02:00
parent 736199a8de
commit 2ef3e1f0a8
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -539,7 +539,10 @@ impl<'a> Card<Transaction<'a>> {
self.state.ard.key_information()
}
pub fn uif(&self, key_type: KeyType) -> Result<Option<UserInteractionFlag>, Error> {
pub fn user_interaction_flag(
&self,
key_type: KeyType,
) -> Result<Option<UserInteractionFlag>, Error> {
match key_type {
KeyType::Signing => self.state.ard.uif_pso_cds(),
KeyType::Decryption => self.state.ard.uif_pso_dec(),
@ -929,7 +932,11 @@ impl Card<Admin<'_, '_>> {
self.card().set_pw_status_bytes(pw_status, long)
}
pub fn set_uif(&mut self, key: KeyType, policy: TouchPolicy) -> Result<(), Error> {
pub fn set_user_interaction_flag(
&mut self,
key: KeyType,
policy: TouchPolicy,
) -> Result<(), Error> {
let uif = match key {
KeyType::Signing => self.state.tx.state.ard.uif_pso_cds()?,
KeyType::Decryption => self.state.tx.state.ard.uif_pso_dec()?,