From: Steffan Karger Date: Sun, 26 Nov 2017 15:49:12 +0000 (+0100) Subject: openssl: add missing #include statements X-Git-Tag: v2.5_beta1~467 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1987498271abadf042d8bb3feee1fe0d877a9d55;p=thirdparty%2Fopenvpn.git openssl: add missing #include statements Compiling our current master against OpenSSL 1.1 with -DOPENSSL_API_COMPAT=0x10100000L screams bloody murder. This patch fixes the errors caused by missing includes. Previous openssl versions would usually include 'the rest of the world', but they're fixing that. So we should no longer rely on it. (And sneaking in alphabetic ordering of the includes while touching them.) Signed-off-by: Steffan Karger Acked-by: Gert Doering Message-Id: <20171126154912.13283-1-steffan@karger.me> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg15936.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/openssl_compat.h b/src/openvpn/openssl_compat.h index 3159952a1..f5328c4cb 100644 --- a/src/openvpn/openssl_compat.h +++ b/src/openvpn/openssl_compat.h @@ -42,6 +42,7 @@ #include "buffer.h" +#include #include #include diff --git a/src/openvpn/ssl_openssl.c b/src/openvpn/ssl_openssl.c index a6a85f5ef..012668a69 100644 --- a/src/openvpn/ssl_openssl.c +++ b/src/openvpn/ssl_openssl.c @@ -52,10 +52,14 @@ #include "ssl_verify_openssl.h" +#include +#include +#include +#include #include #include +#include #include -#include #ifndef OPENSSL_NO_EC #include #endif diff --git a/src/openvpn/ssl_verify_openssl.c b/src/openvpn/ssl_verify_openssl.c index 9b9847517..c5a532d4b 100644 --- a/src/openvpn/ssl_verify_openssl.c +++ b/src/openvpn/ssl_verify_openssl.c @@ -44,8 +44,9 @@ #include "ssl_verify_backend.h" #include "openssl_compat.h" -#include +#include #include +#include int verify_callback(int preverify_ok, X509_STORE_CTX *ctx)