Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(45)

Side by Side Diff: src/platform/vboot_reference/vfirmware/firmware_image_fw.c

Issue 1581005: VBoot Reference: Refactoring Part 3 (Closed)
Patch Set: . Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved. 1 /* Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2 * Use of this source code is governed by a BSD-style license that can be 2 * Use of this source code is governed by a BSD-style license that can be
3 * found in the LICENSE file. 3 * found in the LICENSE file.
4 * 4 *
5 * Functions for verifying a verified boot firmware image. 5 * Functions for verifying a verified boot firmware image.
6 * (Firmware Portion) 6 * (Firmware Portion)
7 */ 7 */
8 8
9 #include "firmware_image_fw.h" 9 #include "firmware_image_fw.h"
10 10
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 * attempted. 312 * attempted.
313 * If FirmwareB is not a rollback, then we attempt to do the verification. 313 * If FirmwareB is not a rollback, then we attempt to do the verification.
314 */ 314 */
315 if (stored_lversion <= firmwareB_lversion && 315 if (stored_lversion <= firmwareB_lversion &&
316 (VERIFY_FIRMWARE_SUCCESS == VerifyFirmware(root_key_blob, firmwareB))) 316 (VERIFY_FIRMWARE_SUCCESS == VerifyFirmware(root_key_blob, firmwareB)))
317 return BOOT_FIRMWARE_B_CONTINUE; 317 return BOOT_FIRMWARE_B_CONTINUE;
318 } 318 }
319 /* D'oh: No bootable firmware. */ 319 /* D'oh: No bootable firmware. */
320 return BOOT_FIRMWARE_RECOVERY_CONTINUE; 320 return BOOT_FIRMWARE_RECOVERY_CONTINUE;
321 } 321 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698