aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2013-01-31 17:33:23 +0100
committerTobias Brunner <tobias@strongswan.org>2013-01-31 17:33:23 +0100
commita3a190b7bdc3cc8740fd7f1e6ac9d78ff2c0f528 (patch)
tree40c970a095efc14f693081539329f997f5fe0300 /src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
parent25637aa5d8c6cc28c47feef7e353bcfd230c549b (diff)
downloadstrongswan-a3a190b7bdc3cc8740fd7f1e6ac9d78ff2c0f528.tar.bz2
strongswan-a3a190b7bdc3cc8740fd7f1e6ac9d78ff2c0f528.tar.xz
openssl: Properly honor OPENSSL_NO_* defines
Diffstat (limited to 'src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c')
-rw-r--r--src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
index 4dc5663f1..ff3382473 100644
--- a/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
+++ b/src/libstrongswan/plugins/openssl/openssl_diffie_hellman.c
@@ -14,6 +14,10 @@
* for more details.
*/
+#include <openssl/opensslconf.h>
+
+#ifndef OPENSSL_NO_DH
+
#include <openssl/dh.h>
#include "openssl_diffie_hellman.h"
@@ -193,3 +197,5 @@ openssl_diffie_hellman_t *openssl_diffie_hellman_create(
return &this->public;
}
+
+#endif /* OPENSSL_NO_DH */