Debug print card "status" before reading ARD
This commit is contained in:
parent
c43b53d210
commit
e9ecfea4cf
1 changed files with 15 additions and 1 deletions
|
@ -274,9 +274,23 @@ impl PcscClient {
|
||||||
e
|
e
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
log::debug!("4b");
|
log::debug!(
|
||||||
|
"4b: opened the OpenPGP application, will read ARD"
|
||||||
|
);
|
||||||
// successfully opened the OpenPGP application
|
// 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 {
|
if let Some(ident) = ident {
|
||||||
let ard = PcscTxClient::application_related_data(
|
let ard = PcscTxClient::application_related_data(
|
||||||
&mut txc,
|
&mut txc,
|
||||||
|
|
Loading…
Reference in a new issue