16#ifndef HITLS_PKI_X509_H
17#define HITLS_PKI_X509_H
19#include "hitls_pki_cert.h"
20#include "hitls_pki_crl.h"
26typedef struct _HITLS_X509_StoreCtx HITLS_X509_StoreCtx;
142 HITLS_X509_List **chain);
struct EAL_PkeyCtx CRYPT_EAL_PkeyCtx
定义 crypt_eal_pkey.h:108
void HITLS_X509_StoreCtxFree(HITLS_X509_StoreCtx *storeCtx)
Release the StoreCtx.
HITLS_X509_StoreCtx * HITLS_X509_ProviderStoreCtxNew(HITLS_PKI_LibCtx *libCtx, const char *attrName)
Create a new X509 store object using the provider mechanism
int32_t HITLS_X509_CertVerifyByPubKey(HITLS_X509_Cert *cert, CRYPT_EAL_PkeyCtx *pubKey)
Verify a single certificate's signature using an external public key.
int32_t HITLS_X509_StoreCtxCtrl(HITLS_X509_StoreCtx *storeCtx, int32_t cmd, void *val, uint32_t valLen)
Generic function to process StoreCtx.
int32_t HITLS_X509_CertVerify(HITLS_X509_StoreCtx *storeCtx, HITLS_X509_List *chain)
Certificate chain verify function.
int32_t HITLS_X509_CertChainBuild(HITLS_X509_StoreCtx *storeCtx, bool isWithRoot, HITLS_X509_Cert *cert, HITLS_X509_List **chain)
Certificate chain build function.
int32_t(* X509_STORECTX_VerifyCb)(int32_t, HITLS_X509_StoreCtx *)
Certificate chain build function.
定义 hitls_pki_x509.h:39
HITLS_X509_StoreCtx * HITLS_X509_StoreCtxNew(void)
Allocate a StoreCtx.
int32_t HITLS_X509_CheckKey(HITLS_X509_Cert *cert, CRYPT_EAL_PkeyCtx *prvKey)
Verify that a certificate's public key matches a given private key.
int32_t HITLS_X509_VerifyHostname(HITLS_X509_Cert *cert, uint32_t flags, const char *hostname, uint32_t hostnameLen)
Verifies a certificate's hostname according to RFC6125 and RFC9525. It first checks for a matching dN...