]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
openssl: Explicitly include openssl/bn.h
authorTobias Brunner <tobias@strongswan.org>
Wed, 16 Sep 2015 09:16:59 +0000 (11:16 +0200)
committerTobias Brunner <tobias@strongswan.org>
Wed, 16 Sep 2015 09:57:52 +0000 (11:57 +0200)
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.

src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
src/libstrongswan/plugins/openssl/openssl_ec_diffie_hellman.c
src/libstrongswan/plugins/openssl/openssl_rsa_private_key.c
src/libstrongswan/plugins/openssl/openssl_rsa_public_key.c
src/libstrongswan/plugins/openssl/openssl_util.c

index cac442fc095062736562b11dd69d5eb7fc28ffc7..49ec4880480f177c21cb3f5956867a623386234e 100644 (file)
@@ -18,6 +18,7 @@
 
 #ifndef OPENSSL_NO_DH
 
+#include <openssl/bn.h>
 #include <openssl/dh.h>
 
 #include "openssl_diffie_hellman.h"
index a1af500e26cde84efc80c78c4cdcc60678a85943..11d6e8ec503f594ecba21b25610d89625d6f7658 100644 (file)
@@ -17,6 +17,7 @@
 
 #ifndef OPENSSL_NO_EC
 
+#include <openssl/bn.h>
 #include <openssl/ec.h>
 #include <openssl/objects.h>
 #include <openssl/bn.h>
index 10a35c1fd901547f2690014a514c45899486bd13..de02f302d6c7473213337ce5adb36c493cdaef00 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <utils/debug.h>
 
+#include <openssl/bn.h>
 #include <openssl/evp.h>
 #include <openssl/rsa.h>
 #ifndef OPENSSL_NO_ENGINE
index aa54d3bbdeefb97880a634a3350b199d7f9c5f76..db928569f31f7a6d2e63566566653ce9edaab39c 100644 (file)
@@ -23,6 +23,7 @@
 
 #include <utils/debug.h>
 
+#include <openssl/bn.h>
 #include <openssl/evp.h>
 #include <openssl/rsa.h>
 #include <openssl/x509.h>
index 0e61086b1a71f1fadbee9c219a916157375033c0..2f981370174b8523a50b73630b9c96e3abea003b 100644 (file)
@@ -18,6 +18,7 @@
 
 #include <utils/debug.h>
 
+#include <openssl/bn.h>
 #include <openssl/evp.h>
 #include <openssl/x509.h>