openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetServerName()

int32_t HITLS_SetServerName ( HITLS_Ctx ctx,
uint8_t *  serverName,
uint32_t  serverNameStrlen 
)

Setting the value of server_name.

参数
ctx[IN] TLS connection handle.
serverName[IN] serverName.
serverNameStrlen[IN] serverName length.
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.