Made a service to enable auto-starting.

This commit is contained in:
2018-08-12 12:00:38 +00:00
parent 0de7ee2fd7
commit 5c908d8530
10 changed files with 33 additions and 10 deletions

View File

@@ -17,7 +17,7 @@ U2F_Authenticate_APDU::U2F_Authenticate_APDU(const U2F_Msg_CMD &msg, const vecto
if (p2 != 0)
{
//Invalid U2F (APDU) parameter detected
throw APDU_STATUS::SW_COMMAND_NOT_ALLOWED;
throw APDU_STATUS::SW_CONDITIONS_NOT_SATISFIED;
}
else if (data.size() < 66)
{
@@ -81,7 +81,7 @@ void U2F_Authenticate_APDU::respond(const uint32_t channelID) const
default:
cerr << "Unknown APDU authentication command" << endl;
this->error(channelID, APDU_STATUS::SW_COMMAND_NOT_ALLOWED);
this->error(channelID, APDU_STATUS::SW_INS_NOT_SUPPORTED);
return;
}