fix pc testing
This commit is contained in:
parent
a265da09fb
commit
11ca6bd517
@ -174,6 +174,10 @@ void device_init()
|
|||||||
usbhid_init();
|
usbhid_init();
|
||||||
|
|
||||||
authenticator_initialize();
|
authenticator_initialize();
|
||||||
|
|
||||||
|
ctaphid_init();
|
||||||
|
|
||||||
|
ctap_init( 1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user