mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-01-10 15:30:55 +00:00
fixup! feat(core): implement THP
This commit is contained in:
parent
75e8d1b9c1
commit
13eed3fb33
@ -18,22 +18,29 @@ if __debug__:
|
|||||||
from trezor import utils
|
from trezor import utils
|
||||||
|
|
||||||
if utils.USE_THP:
|
if utils.USE_THP:
|
||||||
protocol_specific = ThpMessageType.ThpCreateNewSession
|
ALLOW_WHILE_LOCKED = (
|
||||||
|
ThpMessageType.ThpCreateNewSession,
|
||||||
|
MessageType.EndSession,
|
||||||
|
MessageType.GetFeatures,
|
||||||
|
MessageType.Cancel,
|
||||||
|
MessageType.LockDevice,
|
||||||
|
MessageType.DoPreauthorized,
|
||||||
|
MessageType.WipeDevice,
|
||||||
|
MessageType.SetBusy,
|
||||||
|
MessageType.Ping,
|
||||||
|
)
|
||||||
else:
|
else:
|
||||||
protocol_specific = MessageType.Initialize
|
ALLOW_WHILE_LOCKED = (
|
||||||
|
MessageType.Initialize,
|
||||||
|
MessageType.EndSession,
|
||||||
ALLOW_WHILE_LOCKED = (
|
MessageType.GetFeatures,
|
||||||
protocol_specific,
|
MessageType.Cancel,
|
||||||
MessageType.EndSession,
|
MessageType.LockDevice,
|
||||||
MessageType.GetFeatures,
|
MessageType.DoPreauthorized,
|
||||||
MessageType.Cancel,
|
MessageType.WipeDevice,
|
||||||
MessageType.LockDevice,
|
MessageType.SetBusy,
|
||||||
MessageType.DoPreauthorized,
|
MessageType.Ping,
|
||||||
MessageType.WipeDevice,
|
)
|
||||||
MessageType.SetBusy,
|
|
||||||
MessageType.Ping,
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
# Set of workflow tasks. Multiple workflows can be running at the same time.
|
# Set of workflow tasks. Multiple workflows can be running at the same time.
|
||||||
|
Loading…
Reference in New Issue
Block a user