readers: Use Reader to connect to YubiKey
Removes the legacy API inherited from `yubico-piv-tool` and uses the `reader` module exclusively for selecting and opening the PC/SC reader.
This commit is contained in:
@@ -14,7 +14,7 @@ fn connect() {
|
||||
env_logger::builder().format_timestamp(None).init();
|
||||
}
|
||||
|
||||
let mut yubikey = YubiKey::open(None).unwrap();
|
||||
let mut yubikey = YubiKey::open().unwrap();
|
||||
dbg!(&yubikey.version());
|
||||
dbg!(&yubikey.serial());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user