OLD | NEW |
(Empty) | |
| 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 |
| 3 * found in the LICENSE file. |
| 4 * |
| 5 * Host-side misc functions for verified boot. |
| 6 */ |
| 7 |
| 8 #ifndef VBOOT_REFERENCE_HOST_MISC_H_ |
| 9 #define VBOOT_REFERENCE_HOST_MISC_H_ |
| 10 |
| 11 #include <stdint.h> |
| 12 |
| 13 #include "host_misc.h" |
| 14 #include "utility.h" |
| 15 #include "vboot_struct.h" |
| 16 |
| 17 |
| 18 /* Read data from [filename]. Store the size of returned data in [size]. |
| 19 * |
| 20 * Returns the data buffer, which the caller must Free(), or NULL if |
| 21 * error. */ |
| 22 uint8_t* ReadFile(const char* filename, uint64_t* size); |
| 23 |
| 24 |
| 25 #endif /* VBOOT_REFERENCE_HOST_MISC_H_ */ |
OLD | NEW |