openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetPskServerCallback()

int32_t HITLS_SetPskServerCallback ( HITLS_Ctx ctx,
HITLS_PskServerCb  cb 
)

Set the PSK callback on the server, which is used to obtain the PSK during PSK negotiation.

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