From 8929a395c7e9ad41872d9d25b654a14e1bb37e9c Mon Sep 17 00:00:00 2001 From: Lev Stipakov Date: Sun, 11 Oct 2015 13:15:31 +0300 Subject: Fix compilation with --disable-server Add missing #if P2MP_SERVER Acked-by: David Sommerseth 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 --- src/openvpn/push.c | 2 ++ src/openvpn/push.h | 5 ++--- 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); -- cgit