aboutsummaryrefslogtreecommitdiff
path: root/syshead.h
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2011-05-26 10:16:59 +0200
committerDavid Sommerseth <davids@redhat.com>2011-05-31 17:52:46 +0200
commit4fe914a0ef0424144df3b12de19f2166fc613a0c (patch)
treea0cdbc87214b51513655b3e706c3637458434540 /syshead.h
parentFix 2.2.0 build failure when management interface disabled (diff)
downloadopenvpn-4fe914a0ef0424144df3b12de19f2166fc613a0c.tar.xz
Don't define ENABLE_PUSH_PEER_INFO if SSL is not available
The push_peer_info feature depends on the SSL infrastructure and openvpn will fail to build if ./configure --disable-crypto --disable-ssl is used. The solution is to not define ENABLE_PUSH_PEER_INFO if we don't have crypto/ssl. Signed-off-by: David Sommerseth <davids@redhat.com> Acked-by: Gert Doering <gert@greenie.muc.de> (cherry picked from commit 21fc2edfc49bcc903d5cfb74c1ba2f41ac8771f0)
Diffstat (limited to 'syshead.h')
-rw-r--r--syshead.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/syshead.h b/syshead.h
index 63b82ba..b81ce59 100644
--- a/syshead.h
+++ b/syshead.h
@@ -651,6 +651,8 @@ socket_defined (const socket_descriptor_t sd)
/*
* Do we support pushing peer info?
*/
+#if defined(USE_CRYPTO) && defined(USE_SSL)
#define ENABLE_PUSH_PEER_INFO
+#endif
#endif