Skip to content

Commit

Permalink
latest solokeys returns 4 bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
conorpp committed Oct 28, 2019
1 parent 0579471 commit cb4560f
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions tests/vendor/solo/test_solo.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ def test_rng(self, solo):
print("Entropy is %.5f bits per byte." % s)

def test_version(self, solo):
assert len(solo.solo_version()) == 3
assert len(solo.solo_version()) == 4

def test_version_hid(self, solo):
data = solo.send_data_hid(0x61, b'')
assert len(data) == 3
print(f'Version is {data[0]}.{data[1]}.{data[2]}')
assert len(data) == 4
print(f'Version is {data[0]}.{data[1]}.{data[2]} locked?=={data[3]}')


def test_bootloader_not(self, solo):
Expand All @@ -68,7 +68,6 @@ def test_fido2_bridge(self, solo):
assert a.credential["id"] == req
assert (a.auth_data.flags & 0x5) == 0x5

assert len(solo.solo_version()) == 3
solo.get_rng()

solo.exchange = exchange
Expand Down

0 comments on commit cb4560f

Please sign in to comment.