openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_ClientHelloCb

typedef int32_t(* HITLS_ClientHelloCb) (HITLS_Ctx *ctx, int32_t *alert, void *arg)

ClientHello callback prototype for the server to process the callback.

参数
ctx[IN] Ctx context
alert[OUT] The callback that returns a failure should indicate the alert value to be sent in al.
arg[IN] Product input context
返回值
HITLS_CONTINUE_HANDHSAKEsuccessful. Other values are considered as failure.