summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLev Stipakov <lstipakov@gmail.com>2015-10-11 13:15:31 +0300
committerDavid Sommerseth <davids@redhat.com>2015-10-11 12:59:03 +0200
commit8929a395c7e9ad41872d9d25b654a14e1bb37e9c (patch)
tree57bcd78e1f04337019991bbf0da4f4f316f2598c
parent0d1a75bfe241466230c41a52c6013494135c5935 (diff)
downloadopenvpn-8929a395c7e9ad41872d9d25b654a14e1bb37e9c.tar.gz
openvpn-8929a395c7e9ad41872d9d25b654a14e1bb37e9c.tar.xz
openvpn-8929a395c7e9ad41872d9d25b654a14e1bb37e9c.zip
Fix compilation with --disable-server
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>
-rw-r--r--src/openvpn/push.c2
-rw-r--r--src/openvpn/push.h5
2 files changed, 4 insertions, 3 deletions
diff --git a/src/openvpn/push.c b/src/openvpn/push.c
index 704818d..a4cb726 100644
--- a/src/openvpn/push.c
+++ b/src/openvpn/push.c
@@ -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,
diff --git a/src/openvpn/push.h b/src/openvpn/push.h
index 5eca45f..fa06e08 100644
--- a/src/openvpn/push.h
+++ b/src/openvpn/push.h
@@ -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);