1 /* 2 * Copyright (C) 2022 Huawei Technologies Co., Ltd. 3 * Decription: function declaration for load app operations for kernel CA. 4 * 5 * This software is licensed under the terms of the GNU General Public 6 * License version 2, as published by the Free Software Foundation, and 7 * may be copied, distributed, and modified under those terms. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 */ 14 #ifndef TEEK_APP_LOAD_H 15 #define TEEK_APP_LOAD_H 16 17 #include "teek_client_api.h" 18 #include "tc_ns_client.h" 19 20 #define MAX_IMAGE_LEN 0x800000 /* max image len */ 21 22 int32_t teek_get_app(const char *ta_path, char **file_buf, uint32_t *file_len); 23 void teek_free_app(bool load_app_flag, char **file_buf); 24 25 #endif 26