Add options to the authenticator

This commit is contained in:
Sosthène Guédon
2023-03-23 17:19:57 +01:00
parent 84f7db32ba
commit 930fb5d34a
5 changed files with 32 additions and 6 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ impl trussed_usbip::Apps<ClientImplementation<Syscall<virt::Platform<Ram>>>, ()>
_data: (),
) -> Self {
PivApp {
piv: piv::Authenticator::new(make_client("piv")),
piv: piv::Authenticator::new(make_client("piv"), piv::Options::default()),
}
}
+3 -1
View File
@@ -11,11 +11,13 @@
// TODO: add CLI
use piv_authenticator::{Authenticator, Options};
fn main() {
env_logger::init();
trussed_rsa_alloc::virt::with_ram_client("piv-authenticator", |client| {
let card = piv_authenticator::Authenticator::new(client);
let card = Authenticator::new(client, Options::default());
let mut virtual_card = piv_authenticator::vpicc::VirtualCard::new(card);
let vpicc = vpicc::connect().expect("failed to connect to vpicc");
vpicc