Merge "Fix wrong key indexes in package verification logs."
This commit is contained in:
commit
11563e2721
1 changed files with 2 additions and 3 deletions
|
@ -257,8 +257,8 @@ int verify_file(VerifierInterface* package, const std::vector<Certificate>& keys
|
||||||
|
|
||||||
// Check to make sure at least one of the keys matches the signature. Since any key can match,
|
// Check to make sure at least one of the keys matches the signature. Since any key can match,
|
||||||
// we need to try each before determining a verification failure has happened.
|
// we need to try each before determining a verification failure has happened.
|
||||||
size_t i = 0;
|
for (size_t i = 0; i < keys.size(); i++) {
|
||||||
for (const auto& key : keys) {
|
const auto& key = keys[i];
|
||||||
const uint8_t* hash;
|
const uint8_t* hash;
|
||||||
int hash_nid;
|
int hash_nid;
|
||||||
switch (key.hash_len) {
|
switch (key.hash_len) {
|
||||||
|
@ -296,7 +296,6 @@ int verify_file(VerifierInterface* package, const std::vector<Certificate>& keys
|
||||||
} else {
|
} else {
|
||||||
LOG(INFO) << "Unknown key type " << key.key_type;
|
LOG(INFO) << "Unknown key type " << key.key_type;
|
||||||
}
|
}
|
||||||
i++;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (need_sha1) {
|
if (need_sha1) {
|
||||||
|
|
Loading…
Reference in a new issue