fix pc testing

This commit is contained in:
Conor Patrick 2019-03-01 22:11:36 -05:00
parent a265da09fb
commit 11ca6bd517
2 changed files with 7 additions and 3 deletions

View File

@ -174,6 +174,10 @@ void device_init()
usbhid_init(); usbhid_init();
authenticator_initialize(); authenticator_initialize();
ctaphid_init();
ctap_init( 1 );
} }

View File

@ -26,7 +26,7 @@ from fido2.cose import *
from fido2.utils import Timeout, sha256 from fido2.utils import Timeout, sha256
from fido2.attestation import Attestation from fido2.attestation import Attestation
from solo.fido2 import forceUDPBackend from solo.fido2 import force_udp_backend
# Set up a FIDO 2 client using the origin https://example.com # Set up a FIDO 2 client using the origin https://example.com
@ -836,13 +836,13 @@ def test_find_brute_force():
if __name__ == "__main__": if __name__ == "__main__":
if len(sys.argv) > 1 and sys.argv[1] == "sim": if len(sys.argv) > 1 and sys.argv[1] == "sim":
print("Using UDP backend.") print("Using UDP backend.")
forceUDPBackend() force_udp_backend()
t = Tester() t = Tester()
t.find_device() t.find_device()
# t.test_hid() # t.test_hid()
# t.test_long_ping() # t.test_long_ping()
t.test_fido2() # t.test_fido2()
t.test_u2f() t.test_u2f()
# t.test_rk() # t.test_rk()
# t.test_responses() # t.test_responses()