openHiTLS API openHiTLS 0.1.0-Alpha1

◆ CERT_BuildCertChainCallBack

typedef int32_t(* CERT_BuildCertChainCallBack) (HITLS_Config *config, HITLS_CERT_Store *store, HITLS_CERT_X509 *cert, HITLS_CERT_X509 **certList, uint32_t *num)

Create a certificate chain based on the device certificate in use.

注意
If the function is successful, the certificate in the certificate chain is managed by the HiTLS, and the user does not need to release the memory. Otherwise, the certificate chain is an empty pointer array.
参数
config[IN] TLS link configuration
store[IN] Certificate store
cert[IN] Device certificate
certList[OUT] Certificate chain, which is a pointer array. Each element indicates a certificate. The first element is the device certificate.
num[IN/OUT] IN: maximum length of the certificate chain OUT: length of the certificate chain
返回值
HITLS_SUCCESSindicates success. Other values are considered as failure.