Connect Vendor HID interface between USB driver and CTAP app (#490)

* Connect Vendor HID endpoint to Ctap app

* tweaks from review

* formatting nit

* revert tock submodule revision

* fix formatting of deploy.py for yapf error

* Changes based on review

* Track state for each USB endpoint separately

* Rename patch file to ensure correct patching order

* Adjust patch from changes #494 and #500

* rustfmt

* rustfmt

* Deprecate patch 11 in favor of this full working code
This commit is contained in:
Liam Murphy
2022-06-20 15:31:31 +10:00
committed by GitHub
parent 1d53f3c921
commit 2544afbfee
4 changed files with 525 additions and 17 deletions

View File

@@ -473,8 +473,12 @@ class OpenSKInstaller:
def _check_invariants(self):
"""Runs selected unit tests to check preconditions in the code."""
print("Testing invariants in customization.rs...")
self.checked_command_output(
["cargo", "test", "--features=std", "--lib", "customization"])
features = ["std"]
features.extend(self.args.features)
self.checked_command_output([
"cargo", "test", f"--features={','.join(features)}", "--lib",
"customization"
])
def generate_crypto_materials(self, force_regenerate: bool):
"""Calls a shell script that generates cryptographic material."""