openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_PskServerCb

typedef uint32_t(* HITLS_PskServerCb) (HITLS_Ctx *ctx, const uint8_t *identity, uint8_t *psk, uint32_t maxPskLen)

Obtain the PSK prototype on the server.

参数
ctx[IN] Context.
identity[IN] Identity information.
psk[OUT] PSK information written back by the user.
maxPskLen[IN] Maximum length of the psk buffer.
返回值
Returnthe PSK length.