openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_AddCAIndication()

int32_t HITLS_CFG_AddCAIndication ( HITLS_Config config,
HITLS_TrustedCAType  caType,
const uint8_t *  data,
uint32_t  len 
)

Add the CA indicator, which is used when the peer certificate is requested.

参数
config[OUT] TLS link configuration
caType[IN] CA indication type
data[IN] CA indication data
len[IN] Data length
返回值
HITLS_SUCCESS,ifsuccessful. For other error codes, see hitls_error.h.