openssl: Explicitly include openssl/bn.h

If OpenSSL is compiled with OPENSSL_NO_DEPRECATED some of the headers
we include don't include openssl/bn.h anymore.  Therefore, we have to
explicitly include it ourselves where we use BN_* functions.

Fixes #1113.
This commit is contained in:
Tobias Brunner
2015-09-16 11:57:52 +02:00
parent dc486823aa
commit 5f18e2c371
5 changed files with 5 additions and 0 deletions
@@ -18,6 +18,7 @@
#ifndef OPENSSL_NO_DH
#include <openssl/bn.h>
#include <openssl/dh.h>
#include "openssl_diffie_hellman.h"
@@ -17,6 +17,7 @@
#ifndef OPENSSL_NO_EC
#include <openssl/bn.h>
#include <openssl/ec.h>
#include <openssl/objects.h>
#include <openssl/bn.h>
@@ -23,6 +23,7 @@
#include <utils/debug.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#ifndef OPENSSL_NO_ENGINE
@@ -23,6 +23,7 @@
#include <utils/debug.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/rsa.h>
#include <openssl/x509.h>
@@ -18,6 +18,7 @@
#include <utils/debug.h>
#include <openssl/bn.h>
#include <openssl/evp.h>
#include <openssl/x509.h>