openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetChainStore()

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

Set the chain store used by the TLS configuration, which is used to construct the certificate chain.

Parameters
config[OUT] TLS link configuration
store[IN] Certificate chain store
isClone[IN] Indicates whether deep copy is required. The options are as follows: true: yes; false: no.
Return values
HITLS_SUCCESS.
Forother error codes, see hitls_error.h.