diff options
author | Amin Hassani <ahassani@google.com> | 2020-09-15 15:30:08 -0700 |
---|---|---|
committer | Amin Hassani <ahassani@google.com> | 2020-09-15 15:43:28 -0700 |
commit | f624e1167dcfba1e7ca4ff34e10f12b2bfe6578c (patch) | |
tree | 7f0bed5e8e526506db57259e1238b894dd36232c /common/dynamic_partition_control_interface.h | |
parent | 18e9f3ca8d7c155da4f66aaf00e131f892fba420 (diff) |
Check for public key before checking for signatures
The current code is breaking the Chrome OS because in Chrome OS we can
install an unsigned payload into an image that doesn't have the update
payload's public key. The current code is checking for the existence of
signature first. But there is no point checking for the existence of
signature if there is not going to be a public key available to verify
it. So the order needs to be switched. This used to be the older
behavior.
Bug: 163153182
Test: cros flash
Change-Id: Ifa7026d2f288acdd4450017ce0d120272021267f
Diffstat (limited to 'common/dynamic_partition_control_interface.h')
0 files changed, 0 insertions, 0 deletions