]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
perhaps save a bit of space using single bits for booleans
authorAlan T. DeKok <aland@freeradius.org>
Sun, 16 Feb 2025 20:33:07 +0000 (15:33 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Sun, 16 Feb 2025 20:33:07 +0000 (15:33 -0500)
src/protocols/der/der.h

index 9a833e1518c9db5d3672cfecc48da5d97ee6d6c3..2d43850db190b348ba54f8be2e17deaf7556caea 100644 (file)
@@ -70,14 +70,14 @@ typedef struct {
        fr_der_tag_t            sequence_of;
        fr_der_tag_t            set_of;
        int64_t                 max;
-       bool                    is_sequence_of;
-       bool                    is_set_of;
-       bool                    is_pair;
-       bool                    is_pairs;
-       bool                    is_extensions; // This is a flag for a list X.509 extensions
-       bool                    has_default;
-       bool                    is_oid_leaf;
-       bool                    is_choice;
+       bool                    is_sequence_of : 1;
+       bool                    is_set_of : 1;
+       bool                    is_pair : 1;
+       bool                    is_pairs : 1;
+       bool                    is_extensions : 1; // This is a flag for a list X.509 extensions
+       bool                    has_default : 1;
+       bool                    is_oid_leaf : 1;
+       bool                    is_choice : 1;
 } fr_der_attr_flags_t;
 
 static inline fr_der_attr_flags_t const *fr_der_attr_flags(fr_dict_attr_t const *da)