Add missing includes into openssl-compat.h

Before it depends from the caller #include appropriate headers (at least
for OPENSSL_VERSION_NUMBER), but let's make it independent.

Fixes: #574
(cherry picked from commit c2c08e0203da93938fe35234fa3a1be4d1c3c2e1)
This commit is contained in:
Azat Khuzhin 2017-11-22 10:33:15 +03:00 committed by Azat Khuzhin
parent 27b59783f3
commit 01bc36c1f4
No known key found for this signature in database
GPG Key ID: B86086848EF8686D
4 changed files with 3 additions and 3 deletions

View 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"

View 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)

View 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>

View 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"