153 HITLS_HandshakeState state;
154 HitlsProcessState readSubState;
157#ifdef HITLS_TLS_PROTO_TLS13
158 HITLS_HandshakeState ccsNextState;
161 bool isNeedClientCert;
162#if defined(HITLS_TLS_FEATURE_SESSION) || defined(HITLS_TLS_PROTO_TLS13)
163 uint32_t sessionIdSize;
166 uint8_t *clientRandom;
167 uint8_t *serverRandom;
168#ifdef HITLS_TLS_PROTO_TLS13
169 uint8_t earlySecret[MAX_DIGEST_SIZE];
170 uint8_t handshakeSecret[MAX_DIGEST_SIZE];
172 uint8_t masterKey[MAX_DIGEST_SIZE];
174#ifdef HITLS_TLS_FEATURE_ALPN
175 uint8_t *clientAlpnList;
176 uint32_t clientAlpnListSize;
178#ifdef HITLS_TLS_FEATURE_SESSION_TICKET
181 uint32_t ticketLifetimeHint;
182#ifdef HITLS_TLS_PROTO_TLS13
183 uint32_t ticketAgeAdd;
185 uint64_t nextTicketNonce;
186 uint32_t sentTickets;
195#ifdef HITLS_TLS_PROTO_TLS13
196 uint8_t clientHsTrafficSecret[MAX_DIGEST_SIZE];
198 uint8_t serverHsTrafficSecret[MAX_DIGEST_SIZE];
202#ifdef HITLS_TLS_PROTO_DTLS12
203 uint16_t nextSendSeq;
204 uint16_t expectRecvSeq;
205 HS_ReassQueue *reassMsg;
206#ifdef HITLS_BSL_UIO_UDP
207 uint32_t timeoutValue;