API参考
载入中...
搜索中...
未找到
cert_mgr_ctx.h
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#ifndef CERT_MGR_CTX_H
16#define CERT_MGR_CTX_H
17
18#include <stdint.h>
19#include "hitls_crypt_type.h"
20#include "hitls_cert_reg.h"
21#include "cert.h"
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define CERT_DEFAULT_HASH_BKT_SIZE 64u
28
29/* These functions can be stored in a separate header file. */
30HITLS_CERT_Chain *SAL_CERT_ChainNew(void);
31int32_t SAL_CERT_ChainAppend(HITLS_CERT_Chain *chain, HITLS_CERT_X509 *cert);
32HITLS_CERT_Chain *SAL_CERT_ChainDup(CERT_MgrCtx *mgrCtx, HITLS_CERT_Chain *chain);
33
34#ifdef __cplusplus
35}
36#endif
37#endif
struct BslList HITLS_CERT_Chain
Describes the certificate chain
定义 hitls_cert_type.h:73
void HITLS_CERT_X509
Describes the x509 certificate
定义 hitls_cert_type.h:37