mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-29 04:33:39 +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:
@@ -141,12 +141,12 @@ extern char* kVerifyKernelErrors[VERIFY_KERNEL_MAX];
|
||||
* length in [header_len], and return 0.
|
||||
* Else, return error code on failure.
|
||||
*/
|
||||
int VerifyFirmwareHeader(const uint8_t* firmware_sign_key_blob,
|
||||
const uint8_t* kernel_header_blob,
|
||||
const int dev_mode,
|
||||
int* firmware_algorithm,
|
||||
int* kernel_algorithm,
|
||||
int* header_len);
|
||||
int VerifyKernelHeader(const uint8_t* firmware_sign_key_blob,
|
||||
const uint8_t* kernel_header_blob,
|
||||
const int dev_mode,
|
||||
int* firmware_algorithm,
|
||||
int* kernel_algorithm,
|
||||
int* header_len);
|
||||
|
||||
/* Checks the kernel config (analogous to preamble for firmware) signature on
|
||||
* kernel config pointed by [kernel_config_blob] using the signing key
|
||||
|
||||
Reference in New Issue
Block a user