API参考
载入中...
搜索中...
未找到
hitls_pki_utils.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
16#ifndef HITLS_PKI_UTILS_H
17#define HITLS_PKI_UTILS_H
18
19#include "bsl_uio.h"
20#include "hitls_pki_types.h"
21
22#ifdef __cplusplus
23extern "C" {
24#endif
25
26typedef struct _HITLS_X509_Ext HITLS_X509_Ext;
27
28typedef struct _HITLS_X509_Attrs HITLS_X509_Attrs;
29
45int32_t HITLS_PKI_PrintCtrl(int32_t cmd, void *val, uint32_t valLen, BSL_UIO *uio);
46
66int32_t HITLS_X509_ExtCtrl(HITLS_X509_Ext *ext, int32_t cmd, void *val, uint32_t valLen);
67
74HITLS_X509_Ext *HITLS_X509_ExtNew(int32_t type);
75
82void HITLS_X509_ExtFree(HITLS_X509_Ext *ext);
83
93
101
111
120
131int32_t HITLS_X509_AddDnName(BslList *list, HITLS_X509_DN *dnNames, uint32_t size);
132
145int32_t HITLS_X509_AttrCtrl(HITLS_X509_Attrs *attributes, HITLS_X509_AttrCmd cmd, void *val, uint32_t valLen);
146
147#ifdef __cplusplus
148}
149#endif
150
151#endif // HITLS_PKI_UTILS_H
struct UIO_ControlBlock BSL_UIO
UIO module control structure
定义 bsl_uio.h:37
int32_t HITLS_X509_AttrCtrl(HITLS_X509_Attrs *attributes, HITLS_X509_AttrCmd cmd, void *val, uint32_t valLen)
Generic function to process attribute function
HITLS_X509_Ext * HITLS_X509_ExtNew(int32_t type)
Allocate a extension.
BslList * HITLS_X509_DnListNew(void)
New a list of distinguish name, the item is HITLS_X509_NameNode.
int32_t HITLS_X509_AddDnName(BslList *list, HITLS_X509_DN *dnNames, uint32_t size)
Add a distinguish name array to list.
void HITLS_X509_ClearAuthorityKeyId(HITLS_X509_ExtAki *aki)
clear the HITLS_X509_ExtAki structure.
int32_t HITLS_X509_ExtCtrl(HITLS_X509_Ext *ext, int32_t cmd, void *val, uint32_t valLen)
Generic function to set/get an extension.
void HITLS_X509_ExtFree(HITLS_X509_Ext *ext)
Unallocate a extension.
void HITLS_X509_DnListFree(BslList *dnList)
New a list of distinguish name, the list .
void HITLS_X509_FreeGeneralName(HITLS_X509_GeneralName *data)
Free a general name.
定义 bsl_list.h:49
定义 hitls_pki_types.h:147
定义 hitls_pki_types.h:164
定义 hitls_pki_types.h:156