Support configure via the Vendor interface (#524)

* Support configure via the Vendor interface

* Adjust tests now that GetInfo is supported on vendor_hid

* Add test for vendor_hid not supporting FIDO command
This commit is contained in:
Liam Murphy
2022-08-08 21:54:46 +10:00
committed by GitHub
parent 4a2217f025
commit 262e505ef7
3 changed files with 40 additions and 8 deletions

View File

@@ -755,6 +755,7 @@ class OpenSKInstaller:
certificate=self.args.config_cert,
priv_key=self.args.config_pkey,
lock=self.args.lock_device,
use_vendor_hid="vendor_hid" in self.args.features,
))
if not configure_response:
return None
@@ -875,11 +876,6 @@ class OpenSKInstaller:
"configured yet.")
return 0
if "vendor_hid" in self.args.features:
# vendor_hid as a work in progress and is not compatible with configure
# mode.
return 0
# Perform checks if OpenSK was flashed.
if self.args.application != "ctap2":
return 0