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.

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