]> 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>
Tue, 31 May 2011 15:52:46 +0000 (17:52 +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>
(cherry picked from commit 21fc2edfc49bcc903d5cfb74c1ba2f41ac8771f0)

syshead.h

index 63b82babc73d76dcaed42e4dd805108db58e1bc3..b81ce59a1d28bf870853288be97516578fec7316 100644 (file)
--- 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