openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetCertStore()

int32_t HITLS_CFG_SetCertStore ( HITLS_Config config,
HITLS_CERT_Store store,
bool  isClone 
)

Set the cert store used by the TLS configuration.

注意
If verify store is not set, use cert store to verify the certificate. If chain store is not set, use cert store to construct a certificate chain.
参数
config[OUT] TLS link configuration
store[IN] Trust certificate store
isClone[IN] Indicates whether deep copy is required. The options are true and false.
返回值
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.