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

Unified Diff: src/trusted/validator/rich_file_info.h

Issue 15039022: Enable meta-based validation for shared libraries. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Prevent breakage Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
Index: src/trusted/validator/rich_file_info.h
diff --git a/src/trusted/validator/rich_file_info.h b/src/trusted/validator/rich_file_info.h
new file mode 100644
index 0000000000000000000000000000000000000000..5c322e662100752fa8fd1e844ddf3de6bc93d85e
--- /dev/null
+++ b/src/trusted/validator/rich_file_info.h
@@ -0,0 +1,32 @@
+/*
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RICH_FILE_INFO_C_H__
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RICH_FILE_INFO_C_H__
+
+#include <stddef.h>
+
+#include "native_client/src/include/nacl_base.h"
+
+EXTERN_C_BEGIN
+
+struct NaClDesc;
+
+struct RichFileInfo {
+ uint8_t known_file;
+ const char *file_path;
+ uint32_t file_path_length;
+};
+
+void RichFileInfoCtor(struct RichFileInfo *info);
+void RichFileInfoDtor(struct RichFileInfo *info);
+
+int SetFileOriginInfo(struct NaClDesc *desc, struct RichFileInfo *info);
+int GetFileOriginInfo(struct NaClDesc *desc, struct RichFileInfo *info);
+
+EXTERN_C_END
+
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RICH_FILE_INFO_C_H__ */

Powered by Google App Engine
This is Rietveld 408576698