openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetSessionIdCtx()

int32_t HITLS_SetSessionIdCtx ( HITLS_Ctx ctx,
const uint8_t *  sessionIdCtx,
uint32_t  len 
)

Set the user-specific session ID ctx of the HiTLS link, only on the server.

Attention
session id ctx is different from sessio id, session recovery can be performed only after session id ctx matching.
Parameters
ctx[OUT] Config context.
sessionIdCtx[IN] Session ID Context.
len[IN] Session ID context length, which cannot exceed 32 bytes.
Return values
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.