Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / service_runtime / sel_qualify.h
1 /*
2  * Copyright 2010 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_SERVICE_RUNTIME_SEL_QUALIFY_H_
8 #define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_QUALIFY_H_
9
10 /*
11  * We have several different ways of starting Native Client, but all of them
12  * need to run minimal checks during sel_ldr startup to ensure that the
13  * environment can't subvert our security.  This header provides a high-level
14  * interface to the Platform Qualification tests for this very purpose.
15  */
16
17 #include "native_client/src/include/nacl_base.h"
18 #include "native_client/src/trusted/service_runtime/nacl_error_code.h"
19
20 EXTERN_C_BEGIN
21
22 /*
23  * Runs the Platform Qualification tests required for safe sel startup.  This
24  * may be a subset of the full set of PQ tests: it includes the tests that are
25  * important enough to check at every startup, and tests that check aspects of
26  * the system that may be subject to change.
27  */
28 NaClErrorCode NaClRunSelQualificationTests(void);
29
30 EXTERN_C_END
31
32 #endif  /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_SEL_QUALIFY_H_ */