openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_SetPskClientCallback()

int32_t HITLS_SetPskClientCallback ( HITLS_Ctx ctx,
HITLS_PskClientCb  cb 
)

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

during PSK negotiation.

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