openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetCertStore()

int32_t HITLS_SetCertStore ( HITLS_Ctx ctx,
HITLS_CERT_Store store,
bool  isClone 
)

Set the cert store used by the TLS link.

注意
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.
参数
ctx[OUT] TLS link object
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.