From 0a52846603507411b6e6391448876dfc26c02499 Mon Sep 17 00:00:00 2001 From: William Lallemand Date: Mon, 9 Mar 2020 16:53:42 +0100 Subject: [PATCH] CLEANUP: ssl: is_default is a bit in ckch_inst The field is_default becomes a bit in the ckch_inst structure. --- include/types/ssl_sock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/types/ssl_sock.h b/include/types/ssl_sock.h index c67085e1c..716be8936 100644 --- a/include/types/ssl_sock.h +++ b/include/types/ssl_sock.h @@ -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 */ };