Naming; cleanup; logging for pcsc::initialize_card()

This commit is contained in:
Heiko Schaefer 2022-01-14 22:36:44 +01:00
parent 514d055c90
commit b6b2957580
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D
2 changed files with 4 additions and 6 deletions

View file

@ -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)
}

View file

@ -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 {