openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetTicketNums()

int32_t HITLS_CFG_SetTicketNums ( HITLS_Config config,
uint32_t  ticketNums 
)

Setting TLS1.3, number of new session tickets sent after a complete link is established.

This interface should be called before handshake. The default number is 2. If the number is greater than or equal to 1, only one ticket is sent after the session is resumed. When this parameter is set to 0, the ticket is not sent for the complete handshake and session resumption.

参数
config[OUT] Config handle
ticketNums[IN] Number of new session tickets sent.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,configis empty.