forked from wolfSSL/wolfssl
optimize session layout
This commit is contained in:
@@ -1683,11 +1683,11 @@ struct WOLFSSL_X509_CHAIN {
|
|||||||
|
|
||||||
/* wolfSSL session type */
|
/* wolfSSL session type */
|
||||||
struct WOLFSSL_SESSION {
|
struct WOLFSSL_SESSION {
|
||||||
|
word32 bornOn; /* create time in seconds */
|
||||||
|
word32 timeout; /* timeout in seconds */
|
||||||
byte sessionID[ID_LEN]; /* id for protocol */
|
byte sessionID[ID_LEN]; /* id for protocol */
|
||||||
byte sessionIDSz;
|
byte sessionIDSz;
|
||||||
byte masterSecret[SECRET_LEN]; /* stored secret */
|
byte masterSecret[SECRET_LEN]; /* stored secret */
|
||||||
word32 bornOn; /* create time in seconds */
|
|
||||||
word32 timeout; /* timeout in seconds */
|
|
||||||
#ifdef SESSION_CERTS
|
#ifdef SESSION_CERTS
|
||||||
WOLFSSL_X509_CHAIN chain; /* peer cert chain, static */
|
WOLFSSL_X509_CHAIN chain; /* peer cert chain, static */
|
||||||
ProtocolVersion version; /* which version was used */
|
ProtocolVersion version; /* which version was used */
|
||||||
@@ -1695,12 +1695,12 @@ struct WOLFSSL_SESSION {
|
|||||||
byte cipherSuite; /* 2nd byte, actual suite */
|
byte cipherSuite; /* 2nd byte, actual suite */
|
||||||
#endif
|
#endif
|
||||||
#ifndef NO_CLIENT_CACHE
|
#ifndef NO_CLIENT_CACHE
|
||||||
byte serverID[SERVER_ID_LEN]; /* for easier client lookup */
|
|
||||||
word16 idLen; /* serverID length */
|
word16 idLen; /* serverID length */
|
||||||
|
byte serverID[SERVER_ID_LEN]; /* for easier client lookup */
|
||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SESSION_TICKET
|
#ifdef HAVE_SESSION_TICKET
|
||||||
byte ticket[SESSION_TICKET_LEN];
|
|
||||||
word16 ticketLen;
|
word16 ticketLen;
|
||||||
|
byte ticket[SESSION_TICKET_LEN];
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user