]> git.ipfire.org Git - thirdparty/openvpn.git/commitdiff
Fix compilation with --disable-server
authorLev Stipakov <lstipakov@gmail.com>
Sun, 11 Oct 2015 10:15:31 +0000 (13:15 +0300)
committerDavid Sommerseth <davids@redhat.com>
Sun, 11 Oct 2015 10:59:03 +0000 (12:59 +0200)
Add missing #if P2MP_SERVER

Acked-by: David Sommerseth <davids@redhat.com>
Message-Id: <1444558531-18241-1-git-send-email-lstipakov@gmail.com>
URL: http://article.gmane.org/gmane.network.openvpn.devel/10259
Signed-off-by: David Sommerseth <davids@redhat.com>
src/openvpn/push.c
src/openvpn/push.h

index 704818dec8ec25834480a141e9a9056564211604..a4cb726d0caa40a0e6c84f41e23539c101a711b9 100644 (file)
@@ -410,6 +410,7 @@ push_reset (struct options *o)
 }
 #endif
 
+#if P2MP_SERVER
 int
 process_incoming_push_request (struct context *c)
 {
@@ -449,6 +450,7 @@ process_incoming_push_request (struct context *c)
 
   return ret;
 }
+#endif
 
 int
 process_incoming_push_msg (struct context *c,
index 5eca45f4ca15ed1590fd9515da6d5c266628bb6b..fa06e080bd8b34eb6e442b53d0bb23bac8e0b9c0 100644 (file)
@@ -37,9 +37,6 @@
 #define PUSH_MSG_CONTINUATION     5
 #define PUSH_MSG_ALREADY_REPLIED  6
 
-void incoming_push_message (struct context *c,
-                           const struct buffer *buffer);
-
 int process_incoming_push_request (struct context *c);
 
 int process_incoming_push_msg (struct context *c,
@@ -56,6 +53,8 @@ void server_pushed_signal (struct context *c, const struct buffer *buffer, const
 
 #if P2MP_SERVER
 
+void incoming_push_message (struct context *c, const struct buffer *buffer);
+
 void clone_push_list (struct options *o);
 
 void push_option (struct options *o, const char *opt, int msglevel);