openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_CFG_SetPskClientCallback()

int32_t HITLS_CFG_SetPskClientCallback ( HITLS_Config config,
HITLS_PskClientCb  callback 
)

Set the PSK callback function on the client, which is used to obtain the identity

and PSK during PSK negotiation.

参数
config[OUT] config Context
callback[IN] Client callback
返回值
HITLS_SUCCESS,ifsuccessful. For details about other error codes, see hitls_error.h.