openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_PskFindSessionCb

typedef int32_t(* HITLS_PskFindSessionCb) (HITLS_Ctx *ctx, const uint8_t *identity, uint32_t identityLen, HITLS_Session **session)

TLS1.3 server PSK negotiation callback

参数
ctx[IN] ctx context
identity[OUT] Identity information
identityLen[OUT] Identity information length
session[OUT] session
返回值
HITLS_PSK_FIND_SESSION_CB_SUCCESS,ifsuccessful. HITLS_PSK_FIND_SESSION_CB_FAIL, if failed