Adjust to CardClient API changes
This commit is contained in:
parent
ff65d200ec
commit
d67c01c9f6
1 changed files with 3 additions and 3 deletions
|
@ -62,7 +62,7 @@ impl TestCard {
|
|||
let app_id = CardApp::get_aid(&ard)?;
|
||||
|
||||
if &app_id.ident().as_str() == ident {
|
||||
ca = ca.init_caps(&ard)?;
|
||||
ca.init_caps(&ard)?;
|
||||
|
||||
// println!("opened pcsc card {}", ident);
|
||||
|
||||
|
@ -79,13 +79,13 @@ impl TestCard {
|
|||
let mut card = ScdClient::new(SOCKET)?;
|
||||
card.select_card(serial)?;
|
||||
|
||||
let card_client = Box::new(card) as CardClientBox;
|
||||
let mut card_client = Box::new(card) as CardClientBox;
|
||||
|
||||
let mut ca = CardApp::new(card_client);
|
||||
|
||||
// Set Card Capabilities (chaining, command length, ..)
|
||||
let ard = ca.get_app_data()?;
|
||||
ca = ca.init_caps(&ard)?;
|
||||
ca.init_caps(&ard)?;
|
||||
|
||||
// println!("opened scdc card {}", serial);
|
||||
|
||||
|
|
Loading…
Reference in a new issue