openpgp-card: Add activate_file() to CardTransaction
This commit is contained in:
parent
81ef12ffb2
commit
50e3d12f26
1 changed files with 7 additions and 0 deletions
|
@ -111,6 +111,13 @@ pub trait CardTransaction {
|
|||
apdu::send_command(self, select_openpgp, false)?.try_into()
|
||||
}
|
||||
|
||||
/// Activate file
|
||||
fn activate_file(&mut self) -> Result<Vec<u8>, Error> {
|
||||
log::info!("CardTransaction: activate_file");
|
||||
let activate_file = commands::activate_file();
|
||||
apdu::send_command(self, activate_file, false)?.try_into()
|
||||
}
|
||||
|
||||
/// Get the "application related data" from the card.
|
||||
///
|
||||
/// (This data should probably be cached in a higher layer. Some parts of
|
||||
|
|
Loading…
Reference in a new issue