Naming; cleanup; logging for pcsc::initialize_card()
This commit is contained in:
parent
514d055c90
commit
b6b2957580
2 changed files with 4 additions and 6 deletions
|
@ -707,11 +707,7 @@ pub fn run_test(
|
|||
|
||||
let mut tx: Transaction = openpgp_card_pcsc::start_tx!(card_client.card())
|
||||
.map_err(|e| anyhow!(e))?;
|
||||
|
||||
let mut txc = PcscTxClient::new(&mut tx);
|
||||
|
||||
let ard = CardApp::application_related_data(&mut txc)?;
|
||||
let _app_id = ard.application_id()?;
|
||||
|
||||
t(&mut txc, param)
|
||||
}
|
||||
|
|
|
@ -314,7 +314,7 @@ impl PcscClient {
|
|||
|
||||
if store_card {
|
||||
let pcsc = PcscClient::new(card);
|
||||
cas.push(pcsc.into_card_app()?);
|
||||
cas.push(pcsc.initialize_card()?);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -360,7 +360,9 @@ impl PcscClient {
|
|||
|
||||
/// Make an initialized CardApp from a PcscClient.
|
||||
/// Obtain and store feature lists from reader (pinpad functionality).
|
||||
fn into_card_app(mut self) -> Result<Self> {
|
||||
fn initialize_card(mut self) -> Result<Self> {
|
||||
log::debug!("pcsc initialize_card");
|
||||
|
||||
// Get Features from reader (pinpad verify/modify)
|
||||
if let Ok(feat) = self.features() {
|
||||
for tlv in feat {
|
||||
|
|
Loading…
Reference in a new issue