]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
move bools/uint8 closer together
authorAlan T. DeKok <aland@freeradius.org>
Mon, 14 Jun 2021 19:49:23 +0000 (15:49 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 14 Jun 2021 19:49:23 +0000 (15:49 -0400)
so struct packing is happier

src/lib/tls/session.h

index cf5bce511ba7bde9140f4194e67189372de6d0b9..6cc53286e37ceca8f375e855619f748619a6764c 100644 (file)
@@ -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;