]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
CLEANUP: ssl: is_default is a bit in ckch_inst
authorWilliam Lallemand <wlallemand@haproxy.com>
Mon, 9 Mar 2020 15:53:42 +0000 (16:53 +0100)
committerWilliam Lallemand <wlallemand@haproxy.org>
Mon, 9 Mar 2020 16:32:04 +0000 (17:32 +0100)
The field is_default becomes a bit in the ckch_inst structure.

include/types/ssl_sock.h

index c67085e1c26e9874a01deeb71a7dfe2c400666f8..716be8936c3f8f21f2de003d307df9ab4346a629 100644 (file)
@@ -129,7 +129,8 @@ struct ckch_inst {
        struct bind_conf *bind_conf; /* pointer to the bind_conf that uses this ckch_inst */
        struct ssl_bind_conf *ssl_conf; /* pointer to the ssl_conf which is used by every sni_ctx of this inst */
        struct ckch_store *ckch_store; /* pointer to the store used to generate this inst */
-       int is_default;      /* This instance is used as the default ctx for this bind_conf */
+       unsigned int is_default:1;      /* This instance is used as the default ctx for this bind_conf */
+       /* space for more flag there */
        struct list sni_ctx; /* list of sni_ctx using this ckch_inst */
        struct list by_ckchs; /* chained in ckch_store's list of ckch_inst */
 };