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

effectively disable expiry field

This commit is contained in:
Pavol Rusnak 2017-10-23 15:34:17 +02:00
parent 0c85bc8ebc
commit 5761ea237d
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
2 changed files with 2 additions and 3 deletions

View File

@ -25,6 +25,5 @@
["0x534c", "0x0001", "Trezor"],
["0x1209", "0x53c0", "Trezor2 Bootloader"],
["0x1209", "0x53c1", "Trezor2"]
],
"valid_days": 180
]
}

View File

@ -40,7 +40,7 @@ def compose_message(json, proto):
import config_pb2
cfg = config_pb2.Configuration()
cfg.valid_until = int(time.time()) + json['valid_days'] * 3600 * 24
cfg.valid_until = 2147483647 # maxint
cfg.wire_protocol.MergeFrom(proto)
for url in json['whitelist_urls']: