OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ |
| 9 |
| 10 #include <stddef.h> |
| 11 #include <time.h> |
| 12 |
| 13 #include "native_client/src/include/nacl_base.h" |
| 14 |
| 15 EXTERN_C_BEGIN |
| 16 |
| 17 /* |
| 18 * Note: this values in this enum are written to the cache, so changing them |
| 19 * will implicitly invalidate cache entries. |
| 20 */ |
| 21 typedef enum NaClCodeIdentityType { |
| 22 NaClCodeIdentityData = 0, |
| 23 NaClCodeIdentityFile = 1, |
| 24 NaClCodeIdentityMax |
| 25 } NaClCodeIdentityType; |
| 26 |
| 27 struct NaClValidationMetadata { |
| 28 NaClCodeIdentityType identity_type; |
| 29 int64_t code_offset; |
| 30 const char* file_name; |
| 31 size_t file_name_length; |
| 32 int64_t file_size; |
| 33 time_t mtime; |
| 34 }; |
| 35 |
| 36 EXTERN_C_END |
| 37 |
| 38 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_METADATA_H__ */ |
OLD | NEW |