Merge "libfs_avb: Pass const string by reference" am: 949a561cfa am: 0e1a78266b

am: 54a2495dfb

Change-Id: Ie89e0cf2b182adbf0fea18a76c8f677d0b1cfbeb
This commit is contained in:
Greg Kaiser 2019-02-28 11:15:37 -08:00 committed by android-build-merger
commit 6917688a63
2 changed files with 2 additions and 2 deletions

View file

@ -326,7 +326,7 @@ bool ValidatePublicKeyBlob(const uint8_t* key, size_t length,
return false;
}
bool ValidatePublicKeyBlob(const std::string key_blob_to_validate,
bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate,
const std::vector<std::string>& allowed_key_paths) {
std::string allowed_key_blob;
if (key_blob_to_validate.empty()) {

View file

@ -80,7 +80,7 @@ VBMetaVerifyResult VerifyVBMetaSignature(const VBMetaData& vbmeta,
bool ValidatePublicKeyBlob(const uint8_t* key, size_t length, const std::string& expected_key_blob);
bool ValidatePublicKeyBlob(const std::string key_blob_to_validate,
bool ValidatePublicKeyBlob(const std::string& key_blob_to_validate,
const std::vector<std::string>& expected_key_paths);
// Detects if whether a partition contains a rollback image.