]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
openssl: add missing #include statements
authorSteffan Karger <steffan@karger.me>
Sun, 26 Nov 2017 15:49:12 +0000 (16:49 +0100)
committerGert Doering <gert@greenie.muc.de>
Fri, 29 Jun 2018 12:24:06 +0000 (14:24 +0200)
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 <steffan@karger.me>
Acked-by: Gert Doering <gert@greenie.muc.de>
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 <gert@greenie.muc.de>
src/openvpn/openssl_compat.h
src/openvpn/ssl_openssl.c
src/openvpn/ssl_verify_openssl.c

index 3159952a18c2dac52c3945126fdee055f5d2930d..f5328c4cb53802c17dd6f7d68c830067d6544ebc 100644 (file)
@@ -42,6 +42,7 @@
 
 #include "buffer.h"
 
+#include <openssl/rsa.h>
 #include <openssl/ssl.h>
 #include <openssl/x509.h>
 
index a6a85f5ef3507b13dfc662a1bdd006f87d7951e7..012668a69399b3418c8915c82a4dcc7c1c23ca06 100644 (file)
 
 #include "ssl_verify_openssl.h"
 
+#include <openssl/bn.h>
+#include <openssl/crypto.h>
+#include <openssl/dh.h>
+#include <openssl/dsa.h>
 #include <openssl/err.h>
 #include <openssl/pkcs12.h>
+#include <openssl/rsa.h>
 #include <openssl/x509.h>
-#include <openssl/crypto.h>
 #ifndef OPENSSL_NO_EC
 #include <openssl/ec.h>
 #endif
index 9b98475177bfce890aade3f44aaf1c506d06ec91..c5a532d4b15085dde97e6ac5ef706d87763f3020 100644 (file)
@@ -44,8 +44,9 @@
 #include "ssl_verify_backend.h"
 #include "openssl_compat.h"
 
-#include <openssl/x509v3.h>
+#include <openssl/bn.h>
 #include <openssl/err.h>
+#include <openssl/x509v3.h>
 
 int
 verify_callback(int preverify_ok, X509_STORE_CTX *ctx)