]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
REORG: ssl: move openssl-compat from proto to common
authorWilly Tarreau <w@1wt.eu>
Thu, 9 May 2019 12:52:44 +0000 (14:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 10 May 2019 07:19:50 +0000 (09:19 +0200)
This way we can include it much earlier to cover types/ as well.

include/common/openssl-compat.h [moved from include/proto/openssl-compat.h with 98% similarity]
include/types/ssl_sock.h
src/haproxy.c
src/ssl_sock.c

similarity index 98%
rename from include/proto/openssl-compat.h
rename to include/common/openssl-compat.h
index 1f28b52cbaf4dfc3ed987106e11f025849636107..bc36efcd06e5c73609a35d7e8056f273ece75119 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef _PROTO_OPENSSL_COMPAT_H
-#define _PROTO_OPENSSL_COMPAT_H
+#ifndef _COMMON_OPENSSL_COMPAT_H
+#define _COMMON_OPENSSL_COMPAT_H
 #include <openssl/crypto.h>
 #include <openssl/ssl.h>
 #include <openssl/x509.h>
@@ -201,4 +201,4 @@ static inline int EVP_PKEY_base_id(EVP_PKEY *pkey)
 #define TLSEXT_signature_ecdsa      3
 #endif
 
-#endif /* _PROTO_OPENSSL_COMPAT_H */
+#endif /* _COMMON_OPENSSL_COMPAT_H */
index 24b7dc772ed28a1021560136d8dd7837d6883882..3de01e96180be0a0df32b2bf6aa47e4f987c9e28 100644 (file)
@@ -26,7 +26,7 @@
 #include <ebmbtree.h>
 
 #include <common/hathreads.h>
-#include <proto/openssl-compat.h>
+#include <common/openssl-compat.h>
 
 struct pkey_info {
        uint8_t sig;          /* TLSEXT_signature_[rsa,ecdsa,...] */
index 2dec3f1549a876ee5b7f15fcf752d14dfd207df5..8803e6ea769261e78b8458dfb248cca9034a8dd3 100644 (file)
 #include <proto/dns.h>
 #include <proto/vars.h>
 #ifdef USE_OPENSSL
+#include <common/openssl-compat.h>
 #include <proto/ssl_sock.h>
 #include <openssl/rand.h>
 #endif
index 506be4eb1fdcc1202df2182a6f37ee19d13b7672..16e12d487f4a030992cd439e3a12e81e9327fad6 100644 (file)
@@ -87,6 +87,7 @@
 #include <common/debug.h>
 #include <common/errors.h>
 #include <common/initcall.h>
+#include <common/openssl-compat.h>
 #include <common/standard.h>
 #include <common/ticks.h>
 #include <common/time.h>
 #include <proto/frontend.h>
 #include <proto/http_rules.h>
 #include <proto/listener.h>
-#include <proto/openssl-compat.h>
 #include <proto/pattern.h>
 #include <proto/proto_tcp.h>
 #include <proto/proto_http.h>