This way we can include it much earlier to cover types/ as well.
-#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>
#define TLSEXT_signature_ecdsa 3
#endif
-#endif /* _PROTO_OPENSSL_COMPAT_H */
+#endif /* _COMMON_OPENSSL_COMPAT_H */
#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,...] */
#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
#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>