Debug print card "status" before reading ARD

This commit is contained in:
Heiko Schaefer 2022-01-15 00:41:11 +01:00
parent c43b53d210
commit e9ecfea4cf
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -274,9 +274,23 @@ impl PcscClient {
e
);
} else {
log::debug!("4b");
log::debug!(
"4b: opened the OpenPGP application, will read ARD"
);
// successfully opened the OpenPGP application
// -- debug: status --
drop(txc);
let stat = tx.status2_owned().map_err(|e| {
Error::Smartcard(SmartcardError::Error(format!(
"{:?}",
e
)))
})?;
log::debug!("4b card status: {:x?}", stat);
let mut txc = PcscTxClient::new(&mut tx, None);
// -- /debug: status --
if let Some(ident) = ident {
let ard = PcscTxClient::application_related_data(
&mut txc,