]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix implicit declarations when HAVE_OPENSSL_ENGINE is unset
authorJulien Muchembled <jm@nexedi.com>
Fri, 16 Dec 2016 16:32:18 +0000 (17:32 +0100)
committerGert Doering <gert@greenie.muc.de>
Wed, 4 Jan 2017 19:26:12 +0000 (20:26 +0100)
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 <jm@nexedi.com>
Acked-by: Steffan Karger <steffan.karger@fox-it.com>
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 <gert@greenie.muc.de>
src/openvpn/crypto_openssl.c

index e1545f0de08a497bc8a7289fd0325555f0d499ef..c34e650d72d78a3688116f563141ca752a154f8f 100644 (file)
@@ -45,6 +45,8 @@
 #include <openssl/objects.h>
 #include <openssl/evp.h>
 #include <openssl/des.h>
+#include <openssl/err.h>
+#include <openssl/rand.h>
 
 /*
  * Check for key size creepage.