From: Willy Tarreau Date: Wed, 27 May 2020 14:26:00 +0000 (+0200) Subject: REORG: include: move openssl-compat.h from common/ to haproxy/ X-Git-Tag: v2.2-dev9~132 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=6019faba50374b983245344217ee161fe298a1b6;p=haproxy.git REORG: include: move openssl-compat.h from common/ to haproxy/ This file is to openssl what compat.h is to the libc, so it makes sense to move it to haproxy/. It could almost be part of api.h but given the amount of openssl stuff that gets loaded I fear it could increase the build time. Note that this file contains lots of inlined functions. But since it does not depend on anything else in haproxy, it remains safe to keep all that together. --- diff --git a/include/common/openssl-compat.h b/include/haproxy/openssl-compat.h similarity index 98% rename from include/common/openssl-compat.h rename to include/haproxy/openssl-compat.h index 25b1edec5..34fe6cb76 100644 --- a/include/common/openssl-compat.h +++ b/include/haproxy/openssl-compat.h @@ -1,5 +1,5 @@ -#ifndef _COMMON_OPENSSL_COMPAT_H -#define _COMMON_OPENSSL_COMPAT_H +#ifndef _HAPROXY_OPENSSL_COMPAT_H +#define _HAPROXY_OPENSSL_COMPAT_H #ifdef USE_OPENSSL #include @@ -379,4 +379,4 @@ static inline void SSL_CTX_up_ref(SSL_CTX *ctx) #endif #endif /* USE_OPENSSL */ -#endif /* _COMMON_OPENSSL_COMPAT_H */ +#endif /* _HAPROXY_OPENSSL_COMPAT_H */ diff --git a/include/proto/ssl_sock.h b/include/proto/ssl_sock.h index 101d86810..696651213 100644 --- a/include/proto/ssl_sock.h +++ b/include/proto/ssl_sock.h @@ -23,7 +23,7 @@ #define _PROTO_SSL_SOCK_H #ifdef USE_OPENSSL -#include +#include #include #include diff --git a/include/types/listener.h b/include/types/listener.h index cbd4bab17..7374dc8f8 100644 --- a/include/types/listener.h +++ b/include/types/listener.h @@ -27,7 +27,7 @@ #ifdef USE_OPENSSL #include -#include +#include #endif #include diff --git a/include/types/server.h b/include/types/server.h index 70a6e82ac..c8e5bb69b 100644 --- a/include/types/server.h +++ b/include/types/server.h @@ -28,7 +28,7 @@ #include #include #include -#include +#include #include diff --git a/include/types/ssl_ckch.h b/include/types/ssl_ckch.h index db59bb7ee..a63ec1d1e 100644 --- a/include/types/ssl_ckch.h +++ b/include/types/ssl_ckch.h @@ -34,7 +34,7 @@ #ifdef USE_OPENSSL #include -#include +#include /* This is used to preload the certificate, private key * and Cert Chain of a file passed in via the crt diff --git a/include/types/ssl_sock.h b/include/types/ssl_sock.h index aed6e6ce8..be58aa8c2 100644 --- a/include/types/ssl_sock.h +++ b/include/types/ssl_sock.h @@ -34,7 +34,7 @@ #include #include #include -#include +#include /* ***** READ THIS before adding code here! ***** * diff --git a/src/cfgparse-ssl.c b/src/cfgparse-ssl.c index 3d1f676d1..c93c51a47 100644 --- a/src/cfgparse-ssl.c +++ b/src/cfgparse-ssl.c @@ -34,7 +34,7 @@ #include #include #include -#include +#include #include diff --git a/src/haproxy.c b/src/haproxy.c index d2bb0de64..79a28acb6 100644 --- a/src/haproxy.c +++ b/src/haproxy.c @@ -89,7 +89,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/ssl_sample.c b/src/ssl_sample.c index 85703d548..8bc78e1c6 100644 --- a/src/ssl_sample.c +++ b/src/ssl_sample.c @@ -22,7 +22,7 @@ #include #include -#include +#include #include #include diff --git a/src/ssl_sock.c b/src/ssl_sock.c index 39e4f22d2..d11eaaf19 100644 --- a/src/ssl_sock.c +++ b/src/ssl_sock.c @@ -48,7 +48,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/src/ssl_utils.c b/src/ssl_utils.c index 76c513741..10b71d565 100644 --- a/src/ssl_utils.c +++ b/src/ssl_utils.c @@ -13,7 +13,7 @@ #include -#include +#include #include