• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Licensed under the Mulan PSL v2.
4  * You can use this software according to the terms and conditions of the Mulan PSL v2.
5  * You may obtain a copy of Mulan PSL v2 at:
6  *     http://license.coscl.org.cn/MulanPSL2
7  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR
8  * IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR
9  * PURPOSE.
10  * See the Mulan PSL v2 for more details.
11  */
12 
13 #ifndef __PERSRV_API_H__
14 #define __PERSRV_API_H__
15 
16 #include "tee_defines.h"
17 
18 enum TaManager {
19     TA_MANAGER_UNKNOWN,
20     TA_MANAGER_TRUSTONIC
21 };
22 
23 void tee_ext_register_ta(const TEE_UUID *uuid, uint32_t task_id, uint32_t user_id);
24 void tee_ext_unregister_ta(const TEE_UUID *uuid, uint32_t task_id, uint32_t user_id);
25 void tee_ext_notify_unload_ta(const TEE_UUID *uuid);
26 void tee_ext_load_file(void);
27 
28 TEE_Result tee_ext_crl_cert_process(const char *crl_cert, uint32_t crl_cert_size);
29 TEE_Result tee_ext_elf_verify_req(const void *req, uint32_t len);
30 #endif
31