From: Willy Tarreau Date: Thu, 4 Jun 2020 12:25:47 +0000 (+0200) Subject: REORG: include: move ssl_ckch.h to haproxy/ssl_ckch{,-t}.h X-Git-Tag: v2.2-dev9~62 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=47d7f9064d2a52de60378af9628cf8a457a0f1d2;p=thirdparty%2Fhaproxy.git REORG: include: move ssl_ckch.h to haproxy/ssl_ckch{,-t}.h buf-t and ebmbtree were included. --- diff --git a/include/types/ssl_ckch.h b/include/haproxy/ssl_ckch-t.h similarity index 94% rename from include/types/ssl_ckch.h rename to include/haproxy/ssl_ckch-t.h index a4108104b5..d102887af7 100644 --- a/include/types/ssl_ckch.h +++ b/include/haproxy/ssl_ckch-t.h @@ -1,5 +1,5 @@ /* - * include/types/ssl_ckch.h + * include/haproxy/ssl_ckch-t.h * ckch structures * * Copyright (C) 2020 HAProxy Technologies, William Lallemand @@ -29,10 +29,12 @@ */ -#ifndef _TYPES_SSL_CKCH_H -#define _TYPES_SSL_CKCH_H +#ifndef _HAPROXY_SSL_CKCH_T_H +#define _HAPROXY_SSL_CKCH_T_H #ifdef USE_OPENSSL +#include +#include #include #include @@ -93,4 +95,4 @@ struct ckch_inst { }; #endif /* USE_OPENSSL */ -#endif /* _TYPES_SSL_CKCH_H */ +#endif /* _HAPROXY_SSL_CKCH_T_H */ diff --git a/include/proto/ssl_ckch.h b/include/haproxy/ssl_ckch.h similarity index 94% rename from include/proto/ssl_ckch.h rename to include/haproxy/ssl_ckch.h index d0df9b9ac6..919389d6c0 100644 --- a/include/proto/ssl_ckch.h +++ b/include/haproxy/ssl_ckch.h @@ -1,5 +1,5 @@ /* - * include/proto/ssl_ckch.h + * include/haproxy/ssl_ckch.h * ckch function prototypes * * Copyright (C) 2020 HAProxy Technologies, William Lallemand @@ -19,10 +19,12 @@ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ -#ifndef _PROTO_SSL_CKCH_H -#define _PROTO_SSL_CKCH_H +#ifndef _HAPROXY_SSL_CKCH_H +#define _HAPROXY_SSL_CKCH_H #ifdef USE_OPENSSL +#include + /* cert_key_and_chain functions */ int ssl_sock_load_files_into_ckch(const char *path, struct cert_key_and_chain *ckch, char **err); @@ -60,4 +62,4 @@ int ckch_inst_new_load_store(const char *path, struct ckch_store *ckchs, struct struct ssl_bind_conf *ssl_conf, char **sni_filter, int fcount, struct ckch_inst **ckchi, char **err); #endif /* USE_OPENSSL */ -#endif /* _PROTO_SSL_CRTLIST_H */ +#endif /* _HAPROXY_SSL_CRTLIST_H */ diff --git a/include/types/ssl_sock.h b/include/types/ssl_sock.h index ca41ffc2c0..bea2a1603f 100644 --- a/include/types/ssl_sock.h +++ b/include/types/ssl_sock.h @@ -28,13 +28,13 @@ #include #include /* struct wait_event */ -#include #include #include #include #include #include +#include /* ***** READ THIS before adding code here! ***** * diff --git a/src/ssl_ckch.c b/src/ssl_ckch.c index 1fc0d18d1e..5b1b4e10e8 100644 --- a/src/ssl_ckch.c +++ b/src/ssl_ckch.c @@ -23,18 +23,17 @@ #include #include +#include #include #include #include #include -#include #include #include #include -#include #include #include diff --git a/src/ssl_crtlist.c b/src/ssl_crtlist.c index e7c394cc57..d8362259a2 100644 --- a/src/ssl_crtlist.c +++ b/src/ssl_crtlist.c @@ -16,6 +16,7 @@ #include #include +#include #include #include @@ -24,14 +25,12 @@ #include #include -#include #include #include #include #include #include -#include #include /* release ssl bind conf */ diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 4f57f75bf7..86eede3510 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -51,6 +51,7 @@ #include #include #include +#include #include #include #include @@ -81,7 +82,6 @@ #include #include #include -#include #include #include #include