16#ifndef HITLS_PKI_UTILS_H
17#define HITLS_PKI_UTILS_H
20#include "hitls_pki_types.h"
26typedef struct _HITLS_X509_Ext HITLS_X509_Ext;
28typedef struct _HITLS_X509_Attrs HITLS_X509_Attrs;
45int32_t HITLS_PKI_PrintCtrl(int32_t cmd,
void *val, uint32_t valLen,
BSL_UIO *uio);
145int32_t
HITLS_X509_AttrCtrl(HITLS_X509_Attrs *attributes, HITLS_X509_AttrCmd cmd,
void *val, uint32_t valLen);
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.