From: Julien Muchembled Date: Fri, 16 Dec 2016 16:32:18 +0000 (+0100) Subject: Fix implicit declarations when HAVE_OPENSSL_ENGINE is unset X-Git-Tag: v2.3.15~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab1302d47b0f2b2ac9272b9fbb90ef0bd7b7cc35;p=thirdparty%2Fopenvpn.git Fix implicit declarations when HAVE_OPENSSL_ENGINE is unset This fixes a regression in commit 8e95e20913: on amd64, an implicit declaration of ERR_error_string leads to segfaults if the returned pointer does not fit in an 'int'. Trac: #792 Signed-off-by: Julien Muchembled Acked-by: Steffan Karger Message-Id: <20161216163218.25449-1-jm@nexedi.com> URL: https://www.mail-archive.com/openvpn-devel@lists.sourceforge.net/msg13591.html Signed-off-by: Gert Doering --- diff --git a/src/openvpn/crypto_openssl.c b/src/openvpn/crypto_openssl.c index e1545f0de..c34e650d7 100644 --- a/src/openvpn/crypto_openssl.c +++ b/src/openvpn/crypto_openssl.c @@ -45,6 +45,8 @@ #include #include #include +#include +#include /* * Check for key size creepage.