mirror of
https://github.com/trussed-dev/piv-authenticator.git
synced 2026-06-20 04:16:15 -07:00
Add options to the authenticator
This commit is contained in:
+1
-1
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user