Adjust to new ScdClient API, socket is not needed anymore.
This commit is contained in:
parent
f46d94f989
commit
d5b1b2daa3
1 changed files with 1 additions and 4 deletions
|
@ -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, ..)
|
||||||
|
|
Loading…
Reference in a new issue