openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_PskClientCb

typedef uint32_t(* HITLS_PskClientCb) (HITLS_Ctx *ctx, const uint8_t *hint, uint8_t *identity, uint32_t maxIdentityLen, uint8_t *psk, uint32_t maxPskLen)

Obtain the PSK prototype on the client.

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