]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Don't define ENABLE_PUSH_PEER_INFO if SSL is not available
authorDavid Sommerseth <davids@redhat.com>
Thu, 26 May 2011 08:16:59 +0000 (10:16 +0200)
committerDavid Sommerseth <davids@redhat.com>
Fri, 27 May 2011 09:43:03 +0000 (11:43 +0200)
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>
syshead.h

index 5b86cadf435f8562ce734619caa6f2b6851c7d53..82b94eb61cf13750e2355650aac1543ab499cff4 100644 (file)
--- a/syshead.h
+++ b/syshead.h
@@ -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?