Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

issue with the test_LeadingZero() #148

Open
harshaintc opened this issue Jan 13, 2017 · 0 comments
Open

issue with the test_LeadingZero() #148

harshaintc opened this issue Jan 13, 2017 · 0 comments

Comments

@harshaintc
Copy link

void test_LeadingZero() {
U2FHID_FRAME f, r;
initFrame(&f, 0x100, U2FHID_PING, 10);

SEND(f);
RECV(r, 1.0);
CHECK_EQ(r.cid, f.cid);

CHECK_EQ(r.init.cmd, U2FHID_PING);
CHECK_EQ(MSG_LEN(f), MSG_LEN(r));

}
I have problem understanding the logic behind the test case. Why does the cid value is 0x100. The device initialized in the earlier part of the code gets some other value for the cid and how does the authenticator do any validation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant