]> granicus.if.org Git - libevent/commitdiff
Add missing includes into openssl-compat.h
authorAzat Khuzhin <a3at.mail@gmail.com>
Wed, 22 Nov 2017 07:33:15 +0000 (10:33 +0300)
committerAzat Khuzhin <a3at.mail@gmail.com>
Wed, 22 Nov 2017 07:35:01 +0000 (10:35 +0300)
Before it depends from the caller #include appropriate headers (at least
for OPENSSL_VERSION_NUMBER), but let's make it independent.

Fixes: #574
bufferevent_openssl.c
openssl-compat.h
sample/le-proxy.c
test/regress_ssl.c

index f7f5c0f188f92016faa7d6b0657d99bb217ea7c4..6a803a63c82c13111a02585deff7c0eaf3476fae 100644 (file)
@@ -63,7 +63,6 @@
 #include "bufferevent-internal.h"
 #include "log-internal.h"
 
-#include <openssl/bio.h>
 #include <openssl/ssl.h>
 #include <openssl/err.h>
 #include "openssl-compat.h"
index 0f2dcb75d88fcbeeeeeedfb8ebf9a3f2f57f6296..bffd2593d0cded7b8ec81791a28889b382aa2756 100644 (file)
@@ -1,6 +1,9 @@
 #ifndef OPENSSL_COMPAT_H
 #define OPENSSL_COMPAT_H
 
+#include <openssl/bio.h>
+#include "util-internal.h"
+
 #if (OPENSSL_VERSION_NUMBER < 0x10100000L) || defined(LIBRESSL_VERSION_NUMBER)
 
 static inline BIO_METHOD *BIO_meth_new(int type, const char *name)
index c764afc7ecec2c69950a10af584cbf065cb5375a..4e1cf03390f8302909394a3562aa66d0e43896d9 100644 (file)
@@ -31,7 +31,6 @@
 #include <event2/util.h>
 
 #include "util-internal.h"
-#include <openssl/bio.h>
 #include <openssl/ssl.h>
 #include <openssl/err.h>
 #include <openssl/rand.h>
index 490853fcb0a4d8562122116eb1412e7ec991ff00..5004f7e83f72052ba315f16dbd4f52ad5393a68a 100644 (file)
@@ -53,7 +53,6 @@
 #include "tinytest.h"
 #include "tinytest_macros.h"
 
-#include <openssl/bio.h>
 #include <openssl/err.h>
 #include <openssl/pem.h>
 #include "openssl-compat.h"