From: Alan T. DeKok Date: Mon, 14 Jun 2021 19:49:23 +0000 (-0400) Subject: move bools/uint8 closer together X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2aaf46d6bfb8b5be69150f6e0a484a690254f03b;p=thirdparty%2Ffreeradius-server.git move bools/uint8 closer together so struct packing is happier --- diff --git a/src/lib/tls/session.h b/src/lib/tls/session.h index cf5bce511ba..6cc53286e37 100644 --- a/src/lib/tls/session.h +++ b/src/lib/tls/session.h @@ -114,17 +114,18 @@ typedef struct { unsigned int (*record_from_buff)(fr_tls_record_t *buf, void const *ptr, unsigned int size); unsigned int (*record_to_buff)(fr_tls_record_t *buf, void *ptr, unsigned int size); - bool invalid; //!< Whether heartbleed attack was detected. size_t mtu; //!< Maximum record fragment size. char const *prf_label; //!< Input to the TLS pseudo random function. //!< Usually set to a well known string describing //!< what the key being generated will be used for. - bool allow_session_resumption; //!< Whether session resumption is allowed. + void *opaque; //!< Used to store module specific data. + fr_tls_cache_t *cache; //!< Current session resumption state. + bool allow_session_resumption; //!< Whether session resumption is allowed. - void *opaque; //!< Used to store module specific data. + bool invalid; //!< Whether heartbleed attack was detected. uint8_t alerts_sent; bool pending_alert;