mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-27 03:33:50 +00:00
Move test utility functions to a common place.
Also removes the dev_mode flag from Firmware Image verification as key signature for the firmware should be checked whether or not dev mode is enabled. BUG=670 TEST=All tests still pass. Merge remote branch 'refs/remotes/origin/master' into fixtests Fix tests, remove dev mode. Move common code. Review URL: http://codereview.chromium.org/1280002
This commit is contained in:
@@ -226,8 +226,8 @@ bool FirmwareUtility::VerifySignedImage(void) {
|
||||
cerr << "Couldn't read firmware image or malformed image.\n";
|
||||
return false;
|
||||
}
|
||||
if (!(error = VerifyFirmwareImage(root_key_pub_, image_,
|
||||
0))) // Trusted Mode.
|
||||
if (VERIFY_FIRMWARE_SUCCESS ==
|
||||
(error = VerifyFirmwareImage(root_key_pub_, image_)))
|
||||
return true;
|
||||
cerr << VerifyFirmwareErrorString(error) << "\n";
|
||||
return false;;
|
||||
|
||||
Reference in New Issue
Block a user