openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_AddCertToStore()

int32_t HITLS_CFG_AddCertToStore ( HITLS_Config config,
char *  certPath,
HITLS_CERT_StoreType  storeType 
)

Add the certificate to the certificate store that is being used by the current config.

参数
config[IN] TLS link configuration
certPath[IN] Certificate path to be added
storeType[IN] Indicates which store to add cert.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.