openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetTicketNums()

int32_t HITLS_SetTicketNums ( HITLS_Ctx ctx,
uint32_t  ticketNums 
)

Setting TLS1.3, number of new session tickets sent after complete link establishment.

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, tickets will not be sent for the complete handshake and session recovery.

参数
config[OUT] ctx context
ticketNums[IN] Number of sent new session tickets.
返回值
HITLS_SUCCESS,ifsuccessful.
HITLS_NULL_INPUT,ctxis null.