20#include "hitls_build.h"
22#include "hitls_type.h"
28#define MAX_ALERT_COUNT 5u
29#define GET_GROUPS_CNT (-1)
31typedef int32_t (*ManageEventProcess)(
HITLS_Ctx *ctx);
33typedef int32_t (*WriteEventProcess)(
HITLS_Ctx *ctx,
const uint8_t *data, uint32_t dataLen, uint32_t *writeLen);
35typedef int32_t (*ReadEventProcess)(
HITLS_Ctx *ctx, uint8_t *data, uint32_t bufSize, uint32_t *readLen);
37static inline CM_State GetConnState(
const HITLS_Ctx *ctx)
41#ifdef HITLS_TLS_FEATURE_PHA
42int32_t CommonCheckPostHandshakeAuth(TLS_Ctx *ctx);
48int32_t CommonEventInAlertingState(
HITLS_Ctx *ctx);
54int32_t CommonEventInHandshakingState(
HITLS_Ctx *ctx);
64void ChangeConnState(
HITLS_Ctx *ctx, CM_State state);
66void ConnCleanSensitiveData(TLS_Ctx *ctx);
68#ifdef HITLS_TLS_FEATURE_RENEGOTIATION
78int32_t CommonEventInRenegotiationState(
HITLS_Ctx *ctx);
88void InnerRenegotiationProcess(
HITLS_Ctx *ctx);
struct TlsCtx HITLS_Ctx
HITLS context
定义 hitls_type.h:35