1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-12-24 15:28:10 +00:00

common: add proper markers for deprecated messages

This commit is contained in:
matejcik 2020-02-10 15:36:58 +01:00
parent 41aa818c4c
commit ff702c7d7f
3 changed files with 6 additions and 2 deletions

View File

@ -130,6 +130,7 @@ message PassphraseAck {
* @next Deprecated_PassphraseStateAck
*/
message Deprecated_PassphraseStateRequest {
option deprecated = true;
optional bytes state = 1; // actual device state
}
@ -139,6 +140,7 @@ message Deprecated_PassphraseStateRequest {
* @auxend
*/
message Deprecated_PassphraseStateAck {
option deprecated = true;
}
/**

View File

@ -66,8 +66,8 @@ enum MessageType {
// Deprecated messages, kept for protobuf compatibility.
// Both are marked wire_out so that we don't need to implement incoming handler for legacy
MessageType_Deprecated_PassphraseStateRequest = 77 [(wire_out) = true];
MessageType_Deprecated_PassphraseStateAck = 78 [(wire_out) = true];
MessageType_Deprecated_PassphraseStateRequest = 77 [deprecated = true];
MessageType_Deprecated_PassphraseStateAck = 78 [deprecated = true];
// Bootloader
MessageType_FirmwareErase = 6 [(wire_in) = true, (wire_bootloader) = true];

View File

@ -109,6 +109,8 @@ fl.write(
messages = defaultdict(list)
for message in MessageType.DESCRIPTOR.values:
if message.GetOptions().deprecated:
continue
extension = get_wire_extension(message)
messages[extension].append(message)