From 03ef3aa629aac1cf7a3caedcc49b4560237f0cfc Mon Sep 17 00:00:00 2001 From: qingzhang001 Date: Tue, 20 Dec 2016 16:44:18 +0800 Subject: [PATCH] Remove Bad CLA response test as some authenticator only support 1 logical channel on NFC If authenticator only support 1 logical channel on NFC, it will ignore the channel number in class byte and direct to applet selected. Multi channel on NFC in authenticator is not FIDO requirement, so test removed --- u2f-tests/NFC/u2f_nfc_test.cc | 4 ---- 1 file changed, 4 deletions(-) diff --git a/u2f-tests/NFC/u2f_nfc_test.cc b/u2f-tests/NFC/u2f_nfc_test.cc index 7e6a4bd..808b326 100644 --- a/u2f-tests/NFC/u2f_nfc_test.cc +++ b/u2f-tests/NFC/u2f_nfc_test.cc @@ -182,10 +182,6 @@ int main(int argc, char* argv[]) { CHECK_EQ(0x6D00, xchgAPDUExtended(0, 0 /* not U2F INS */, 0, 0, 0, "", &rapduLen, rapdu)); CHECK_EQ(0, rapduLen); - std::cout << "\nCheck Bad CLA Response"; - CHECK_NE(0x9000, xchgAPDUShort(1 /* not U2F CLA, 0x00 */, U2F_INS_AUTHENTICATE, 0, 0, 0, "abc", &rapduLen, rapdu)); - CHECK_EQ(0, rapduLen); - std::cout << "\nCheck Wrong Length U2F_REGISTER Response"; CHECK_EQ(0x6700u, xchgAPDUShort(0, U2F_INS_REGISTER, 0, 0, 0, "", &rapduLen, rapdu)); CHECK_EQ(0, rapduLen);