• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (C) 2022 Huawei Technologies Co., Ltd.
3  * Decription: function for update crl.
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 TZ_UPDATE_CRL_H
15 #define TZ_UPDATE_CRL_H
16 #include "teek_ns_client.h"
17 
18 #define DEVICE_CRL_MAX 0x4000 /* 16KB */
19 int send_crl_to_tee(const char *crl_buffer, uint32_t crl_len, const struct tc_ns_dev_file *dev_file);
20 int tc_ns_update_ta_crl(const struct tc_ns_dev_file *dev_file, void __user *argp);
21 int tz_update_crl(const char *file_path, const struct tc_ns_dev_file *dev_file);
22 
23 #endif