openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetVerifyStore()

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

Set the verify store used by the TLS configuration, which is used for certificate verification.

Parameters
config[OUT] TLS link configuration.
store[IN] CA certificate store.
isClone[IN] Indicates whether deep copy is required. true indicates need, false indicates not need.
Return values
HITLS_SUCCESS,ifsuccessful.
Forother error codes, see hitls_error.h.