openHiTLS API openHiTLS 0.1.0-Alpha1

◆ HITLS_NewSessionCb

typedef int32_t(* HITLS_NewSessionCb) (HITLS_Ctx *ctx, HITLS_Session *session)

This callback is called when a new session is negotiated. Users can use sessions.

Parameters
ctx[IN] ctx context
session[IN] Session handle
Return values
1Success. If a user removes a session, the user needs to release the session handle.
0failed. The user does not use the session.