CLEANUP: ssl: avoid circular dependencies in ssl_crtlist.h
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 13 May 2020 06:24:41 +0000 (08:24 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Fri, 15 May 2020 12:11:54 +0000 (14:11 +0200)
Add forward declarations in types/ssl_crtlist.h in order to avoid
circular dependencies. Also remove the listener.h include which is not
needed anymore.

include/types/ssl_crtlist.h

index bcece4e..095a127 100644 (file)
 #define _TYPES_SSL_CRTLIST_H
 #ifdef USE_OPENSSL
 
+#include <ebmbtree.h>
+
 #include <common/mini-clist.h>
 
-#include <types/listener.h>
+/* forward declarations for structures below */
+struct bind_conf;
+struct ssl_bind_conf;
+struct proxy;
 
 /* list of bind conf used by struct crtlist */
 struct bind_conf_list {