• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * This file is part of the openHiTLS project.
3  *
4  * openHiTLS is licensed under the Mulan PSL v2.
5  * You can use this software according to the terms and conditions of the Mulan PSL v2.
6  * You may obtain a copy of Mulan PSL v2 at:
7  *
8  *     http://license.coscl.org.cn/MulanPSL2
9  *
10  * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
11  * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
12  * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
13  * See the Mulan PSL v2 for more details.
14  */
15  /**
16  * @defgroup hitls_cert_init
17  * @ingroup  hitls
18  * @brief    TLS certificate abstraction layer initialization
19  */
20 
21 #ifndef HITLS_CERT_INIT_H
22 #define HITLS_CERT_INIT_H
23 
24 #include <stdint.h>
25 
26 #ifdef __cplusplus
27 extern "C" {
28 #endif
29 
30 /**
31  * @ingroup hitls_cert_init
32  * @brief   Certificate initialization interface, default use the HITLS X509 interface.
33  *
34  * @attention If HITLS X509 not be used, do not need to call this interface.
35  * @param   NA
36  * @retval  void
37  */
38 int32_t HITLS_CertMethodInit(void);
39 
40 /**
41  * @ingroup hitls_cert_init
42  * @brief   Deinitialize the certificate, set the certificate registration interface to NULL.
43  *
44  * @param   NA
45  * @retval  void
46  */
47 void HITLS_CertMethodDeinit(void);
48 
49 #ifdef __cplusplus
50 }
51 #endif
52 
53 #endif /* HITLS_CRYPT_CERT_H */
54