openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetPskUseSessionCallback()

int32_t HITLS_SetPskUseSessionCallback ( HITLS_Ctx ctx,
HITLS_PskUseSessionCb  cb 
)

Set the client callback, which is used to restore the PSK session of TLS1.3, cb can be NULL.

参数
ctx[OUT] TLS connection handle
cb[IN] Callback function
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.