openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_MsgCb

typedef void(* HITLS_MsgCb) (int32_t writePoint, int32_t tlsVersion, int32_t contentType, const void *msg, uint32_t msgLen, HITLS_Ctx *ctx, void *arg)

Callback prototype of a protocol message

注意
: The callback function for messages in the retention protocol does not return any value.
参数
writePoint[IN] writePoint Message direction in the callback ">>>" or "<<<"
tlsVersion[IN] tlsVersion TLS version, for example, HITLS_VERSION_TLS12.
contentType[IN]contentType Type of the processed message body.
msg[IN] msg callback internal message processing instruction data
msgLen[IN] msgLen Processing instruction data length
ctx[IN] ctx HITLS context
arg[IN] arg User data, for example, BIO
返回值
Novalue is returned.