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>
This commit is contained in:
David Sommerseth 2011-05-26 10:16:59 +02:00
parent 8a606673bd
commit 21fc2edfc4

View file

@ -681,7 +681,9 @@ 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
/*
* Do we support internal client-side NAT?