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>
... | ... |
@@ -410,6 +410,7 @@ push_reset (struct options *o) |
410 | 410 |
} |
411 | 411 |
#endif |
412 | 412 |
|
413 |
+#if P2MP_SERVER |
|
413 | 414 |
int |
414 | 415 |
process_incoming_push_request (struct context *c) |
415 | 416 |
{ |
... | ... |
@@ -449,6 +450,7 @@ process_incoming_push_request (struct context *c) |
449 | 449 |
|
450 | 450 |
return ret; |
451 | 451 |
} |
452 |
+#endif |
|
452 | 453 |
|
453 | 454 |
int |
454 | 455 |
process_incoming_push_msg (struct context *c, |
... | ... |
@@ -37,9 +37,6 @@ |
37 | 37 |
#define PUSH_MSG_CONTINUATION 5 |
38 | 38 |
#define PUSH_MSG_ALREADY_REPLIED 6 |
39 | 39 |
|
40 |
-void incoming_push_message (struct context *c, |
|
41 |
- const struct buffer *buffer); |
|
42 |
- |
|
43 | 40 |
int process_incoming_push_request (struct context *c); |
44 | 41 |
|
45 | 42 |
int process_incoming_push_msg (struct context *c, |
... | ... |
@@ -56,6 +53,8 @@ void server_pushed_signal (struct context *c, const struct buffer *buffer, const |
56 | 56 |
|
57 | 57 |
#if P2MP_SERVER |
58 | 58 |
|
59 |
+void incoming_push_message (struct context *c, const struct buffer *buffer); |
|
60 |
+ |
|
59 | 61 |
void clone_push_list (struct options *o); |
60 | 62 |
|
61 | 63 |
void push_option (struct options *o, const char *opt, int msglevel); |