21#include "hitls_type.h"
22#include "hitls_session.h"
23#include "tls_config.h"
38#ifdef HITLS_TLS_FEATURE_SESSION
39 uint32_t sessCacheSize;
40 uint32_t sessCacheMode;
46 uint8_t ticketKeyName[HITLS_TICKET_KEY_NAME_SIZE];
47 uint8_t ticketAesKey[HITLS_TICKET_KEY_SIZE];
48 uint8_t ticketHmacKey[HITLS_TICKET_KEY_SIZE];
54 CERT_MgrCtx *certMgrCtx;
59 bool haveExtMasterSecret;
64#ifdef HITLS_TLS_FEATURE_SNI
65 uint32_t hostNameSize;
69 uint32_t sessionIdCtxSize;
72 uint32_t sessionIdSize;
80 uint32_t masterKeySize;
81 uint8_t masterKey[MAX_MASTER_KEY_SIZE];
85 uint32_t ticketLifetime;
86 uint32_t ticketAgeAdd;
90#define LIBCTX_FROM_SESSION_CTX(sessCtx) ((sessCtx) == NULL) ? \
91 NULL : ((sessCtx)->certMgrCtx == NULL ? NULL : (sessCtx)->certMgrCtx->libCtx)
92#define ATTRIBUTE_FROM_SESSION_CTX(sessCtx) ((sessCtx) == NULL) ? \
93 NULL : ((sessCtx)->certMgrCtx == NULL ? NULL : (sessCtx)->certMgrCtx->attrName)
int32_t(* HITLS_TicketKeyCb)(uint8_t *keyName, uint32_t keyNameSize, HITLS_CipherParameters *cipher, uint8_t isEncrypt)
Obtain and verify ticket_key on the server.
定义 hitls_session.h:259
#define HITLS_SESSION_ID_MAX_SIZE
Maximum size of a session ID
定义 hitls_session.h:46
#define HITLS_SESSION_ID_CTX_MAX_SIZE
Session id Maximum size of the CTX.
定义 hitls_session.h:40