1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-22 22:38:08 +00:00

feat(legacy): adapt legacy to THP changes

[no changelog]
This commit is contained in:
M1nd3r 2024-12-02 15:42:35 +01:00
parent c3a3bf2845
commit 473b477821
4 changed files with 21 additions and 9 deletions

View File

@ -191,6 +191,12 @@ void fsm_sendFailure(FailureType code, const char *text)
case FailureType_Failure_InvalidSession: case FailureType_Failure_InvalidSession:
text = _("Invalid session"); text = _("Invalid session");
break; break;
case FailureType_Failure_ThpUnallocatedSession:
text = _("Unallocated session");
break;
case FailureType_Failure_InvalidProtocol:
text = _("Invalid protocol");
break;
case FailureType_Failure_FirmwareError: case FailureType_Failure_FirmwareError:
text = _("Firmware error"); text = _("Firmware error");
break; break;

View File

@ -10,7 +10,7 @@ SKIPPED_MESSAGES := Binance Cardano DebugMonero Eos Monero Ontology Ripple SdPro
EthereumTypedDataValueRequest EthereumTypedDataValueAck ShowDeviceTutorial \ EthereumTypedDataValueRequest EthereumTypedDataValueAck ShowDeviceTutorial \
UnlockBootloader AuthenticateDevice AuthenticityProof \ UnlockBootloader AuthenticateDevice AuthenticityProof \
Solana StellarClaimClaimableBalanceOp \ Solana StellarClaimClaimableBalanceOp \
ChangeLanguage TranslationDataRequest TranslationDataAck \ ChangeLanguage TranslationDataRequest TranslationDataAck Thp \
SetBrightness DebugLinkOptigaSetSecMax \ SetBrightness DebugLinkOptigaSetSecMax \
BenchmarkListNames BenchmarkRun BenchmarkNames BenchmarkResult BenchmarkListNames BenchmarkRun BenchmarkNames BenchmarkResult

View File

@ -2,6 +2,8 @@ DebugLinkDecision.input max_size:33
DebugLinkDecision.x type:FT_IGNORE DebugLinkDecision.x type:FT_IGNORE
DebugLinkDecision.y type:FT_IGNORE DebugLinkDecision.y type:FT_IGNORE
DebugLinkGetState.thp_channel_id type:FT_IGNORE
DebugLinkState.layout max_size:1024 DebugLinkState.layout max_size:1024
DebugLinkState.pin max_size:51 DebugLinkState.pin max_size:51
DebugLinkState.matrix max_size:10 DebugLinkState.matrix max_size:10
@ -10,6 +12,9 @@ DebugLinkState.reset_word max_size:12
DebugLinkState.reset_entropy max_size:128 DebugLinkState.reset_entropy max_size:128
DebugLinkState.recovery_fake_word max_size:12 DebugLinkState.recovery_fake_word max_size:12
DebugLinkState.tokens type:FT_IGNORE DebugLinkState.tokens type:FT_IGNORE
DebugLinkState.thp_pairing_code_entry_code type:FT_IGNORE
DebugLinkState.thp_pairing_code_qr_code type:FT_IGNORE
DebugLinkState.thp_pairing_code_nfc_unidirectional type:FT_IGNORE
DebugLinkLog.bucket max_size:33 DebugLinkLog.bucket max_size:33
DebugLinkLog.text max_size:256 DebugLinkLog.text max_size:256

View File

@ -0,0 +1 @@
../../vendor/trezor-common/protob/messages-thp.proto