| OLD | NEW |
| 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 // Utility for manipulating verified boot firmware images. | 5 // Utility for manipulating verified boot firmware images. |
| 6 // | 6 // |
| 7 | 7 |
| 8 #include "kernel_utility.h" | 8 #include "kernel_utility.h" |
| 9 | 9 |
| 10 #include <errno.h> | 10 #include <errno.h> |
| 11 #include <getopt.h> | 11 #include <getopt.h> |
| 12 #include <stdio.h> |
| 12 #include <stdint.h> // Needed for UINT16_MAX. | 13 #include <stdint.h> // Needed for UINT16_MAX. |
| 13 #include <stdlib.h> | 14 #include <stdlib.h> |
| 14 #include <unistd.h> | 15 #include <unistd.h> |
| 15 | 16 |
| 16 #include <iostream> | 17 #include <iostream> |
| 17 | 18 |
| 18 extern "C" { | 19 extern "C" { |
| 19 #include "file_keys.h" | 20 #include "file_keys.h" |
| 20 #include "kernel_image.h" | 21 #include "kernel_image.h" |
| 21 #include "padding.h" | 22 #include "padding.h" |
| (...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 348 } | 349 } |
| 349 if (fu.is_verify()) { | 350 if (fu.is_verify()) { |
| 350 cerr << "Verification "; | 351 cerr << "Verification "; |
| 351 if (fu.VerifySignedImage()) | 352 if (fu.VerifySignedImage()) |
| 352 cerr << "SUCCESS.\n"; | 353 cerr << "SUCCESS.\n"; |
| 353 else | 354 else |
| 354 cerr << "FAILURE.\n"; | 355 cerr << "FAILURE.\n"; |
| 355 } | 356 } |
| 356 return 0; | 357 return 0; |
| 357 } | 358 } |
| OLD | NEW |