From 92e1d51442bddfff203f4b3f22347f0fb7b70acf Mon Sep 17 00:00:00 2001 From: kaczmarczyck <43844792+kaczmarczyck@users.noreply.github.com> Date: Mon, 13 Jun 2022 13:46:15 +0200 Subject: [PATCH] Fix libfido in configure (#499) * fix capitalization of Ctap2 in configure * changes setup to match new libfido2 version --- setup.sh | 2 +- tools/configure.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.sh b/setup.sh index e3febf9..6c70397 100755 --- a/setup.sh +++ b/setup.sh @@ -46,4 +46,4 @@ rustup install stable cargo +stable install elf2tab --version 0.7.0 --root elf2tab/ # Install python dependencies to factory configure OpenSK (crypto, JTAG lockdown) -pip3 install --user --upgrade colorama tqdm cryptography "fido2>=0.9.1" +pip3 install --user --upgrade colorama tqdm cryptography "fido2>=1.0.0" diff --git a/tools/configure.py b/tools/configure.py index 0d90630..f79e835 100755 --- a/tools/configure.py +++ b/tools/configure.py @@ -61,9 +61,9 @@ def get_opensk_devices(batch_mode): if (dev.descriptor.vid, dev.descriptor.pid) == OPENSK_VID_PID: if dev.capabilities & hid.CAPABILITY.CBOR: if batch_mode: - devices.append(ctap2.CTAP2(dev)) + devices.append(ctap2.Ctap2(dev)) else: - return [ctap2.CTAP2(dev)] + return [ctap2.Ctap2(dev)] return devices