Added ping command functionality.

This commit is contained in:
2018-08-10 18:31:22 +00:00
parent a20c190fea
commit 2b01dbc605
11 changed files with 47 additions and 11 deletions

View File

@@ -162,7 +162,7 @@ shared_ptr<U2F_Msg_CMD> U2F_Msg_CMD::generate(const shared_ptr<U2FMessage> uMsg)
case APDU::U2F_AUTH:
return make_shared<U2F_Authenticate_APDU>(cmd, dBytes);
case APDU::U2F_VER:
return make_shared<U2F_Version_APDU>(cmd);
return make_shared<U2F_Version_APDU>(cmd, dBytes);
default:
cerr << "Invalid command used" << endl;
throw APDU_STATUS::SW_INS_NOT_SUPPORTED;