![]() |
API参考
|
PKCS#12 public APIs. 更多...
#include "hitls_pki_types.h"

类型定义 | |
| typedef struct _HITLS_PKCS12 | HITLS_PKCS12 |
| typedef struct _HITLS_PKCS12_Bag | HITLS_PKCS12_Bag |
函数 | |
| HITLS_PKCS12 * | HITLS_PKCS12_New (void) |
| Allocate a pkcs12 struct. | |
| HITLS_PKCS12 * | HITLS_PKCS12_ProviderNew (HITLS_PKI_LibCtx *libCtx, const char *attrName) |
| Allocate a pkcs12 struct. | |
| void | HITLS_PKCS12_Free (HITLS_PKCS12 *p12) |
| Release the pkcs12 context. | |
| HITLS_PKCS12_Bag * | HITLS_PKCS12_BagNew (uint32_t bagId, uint32_t bagType, void *bagValue) |
| Allocate a bag struct, which could store a cert or key and its attributes. | |
| void | HITLS_PKCS12_BagFree (HITLS_PKCS12_Bag *bag) |
| Release the bag context. | |
| int32_t | HITLS_PKCS12_BagCtrl (HITLS_PKCS12_Bag *bag, int32_t cmd, void *val, uint32_t valType) |
| Generic function to set a p12 context. | |
| int32_t | HITLS_PKCS12_Ctrl (HITLS_PKCS12 *p12, int32_t cmd, void *val, uint32_t valLen) |
| Generic function to set a p12 context. | |
| int32_t | HITLS_PKCS12_ParseBuff (int32_t format, const BSL_Buffer *encode, const HITLS_PKCS12_PwdParam *pwdParam, HITLS_PKCS12 **p12, bool needMacVerify) |
| pkcs12 parse | |
| int32_t | HITLS_PKCS12_ProviderParseBuff (HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const BSL_Buffer *encode, const HITLS_PKCS12_PwdParam *pwdParam, HITLS_PKCS12 **p12, bool needMacVerify) |
| pkcs12 parse | |
| int32_t | HITLS_PKCS12_ParseFile (int32_t format, const char *path, const HITLS_PKCS12_PwdParam *pwdParam, HITLS_PKCS12 **p12, bool needMacVerify) |
| int32_t | HITLS_PKCS12_ProviderParseFile (HITLS_PKI_LibCtx *libCtx, const char *attrName, const char *format, const char *path, const HITLS_PKCS12_PwdParam *pwdParam, HITLS_PKCS12 **p12, bool needMacVerify) |
| pkcs12 parse file | |
| int32_t | HITLS_PKCS12_GenBuff (int32_t format, HITLS_PKCS12 *p12, const HITLS_PKCS12_EncodeParam *encodeParam, bool isNeedMac, BSL_Buffer *encode) |
| pkcs12 gen | |
| int32_t | HITLS_PKCS12_GenFile (int32_t format, HITLS_PKCS12 *p12, const HITLS_PKCS12_EncodeParam *encodeParam, bool isNeedMac, const char *path) |
PKCS#12 public APIs.