Adjust to new ScdClient API, socket is not needed anymore.

This commit is contained in:
Heiko Schaefer 2021-08-03 17:46:55 +02:00
parent f46d94f989
commit d5b1b2daa3

View file

@ -73,10 +73,7 @@ impl TestCard {
Err(anyhow!("Pcsc card {} not found", ident)) Err(anyhow!("Pcsc card {} not found", ident))
} }
Self::Scdc(serial) => { Self::Scdc(serial) => {
// FIXME let card_client = ScdClient::open_by_serial(None, serial)?;
const SOCKET: &str = "/run/user/1000/gnupg/S.scdaemon";
let card_client = ScdClient::open_by_serial(SOCKET, serial)?;
let mut ca = CardApp::new(card_client); let mut ca = CardApp::new(card_client);
// Set Card Capabilities (chaining, command length, ..) // Set Card Capabilities (chaining, command length, ..)