| 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 "firmware_utility.h" | 8 #include "firmware_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 "firmware_image.h" | 21 #include "firmware_image.h" |
| 21 #include "padding.h" | 22 #include "padding.h" |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 299 } | 300 } |
| 300 if (fu.is_verify()) { | 301 if (fu.is_verify()) { |
| 301 cerr << "Verification "; | 302 cerr << "Verification "; |
| 302 if (fu.VerifySignedImage()) | 303 if (fu.VerifySignedImage()) |
| 303 cerr << "SUCCESS.\n"; | 304 cerr << "SUCCESS.\n"; |
| 304 else | 305 else |
| 305 cerr << "FAILURE.\n"; | 306 cerr << "FAILURE.\n"; |
| 306 } | 307 } |
| 307 return 0; | 308 return 0; |
| 308 } | 309 } |
| OLD | NEW |