1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-27 01:48:17 +00:00

Confirm to change U2F counter (#114)

This commit is contained in:
Jochen Hoenicke 2016-09-27 23:33:28 +02:00 committed by Pavol Rusnak
parent 9fe9ebc990
commit d767e52055

View File

@ -1067,8 +1067,15 @@ void fsm_msgWordAck(WordAck *msg)
void fsm_msgSetU2FCounter(SetU2FCounter *msg)
{
layoutDialogSwipe(&bmp_icon_question, "Cancel", "Confirm", NULL, "Do you want to set", "the U2F counter?", NULL, NULL, NULL, NULL);
if (!protectButton(ButtonRequestType_ButtonRequest_ProtectCall, false)) {
fsm_sendFailure(FailureType_Failure_ActionCancelled, "SetU2FCounter cancelled");
layoutHome();
return;
}
storage_setU2FCounter(msg->u2f_counter);
fsm_sendSuccess("U2F counter set");
layoutHome();
}
#if DEBUG_LINK