openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetSessionIdCtx()

int32_t HITLS_CFG_SetSessionIdCtx ( HITLS_Config config,
const uint8_t *  sessionIdCtx,
uint32_t  len 
)

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

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