2
* OpenVPN -- An application to securely tunnel IP networks
3
* over a single TCP/UDP port, with support for SSL/TLS-based
4
* session authentication and key exchange,
5
* packet encryption, packet authentication, and
8
* Copyright (C) 2002-2004 James Yonan <jim@yonan.net>
10
* This program is free software; you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation; either version 2 of the License, or
13
* (at your option) any later version.
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
20
* You should have received a copy of the GNU General Public License
21
* along with this program (see the file COPYING included with this
22
* distribution); if not, write to the Free Software Foundation, Inc.,
23
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
33
#define PUSH_MSG_ERROR 0
34
#define PUSH_MSG_REQUEST 1
35
#define PUSH_MSG_REPLY 2
36
#define PUSH_MSG_REQUEST_DEFERRED 3
37
#define PUSH_MSG_AUTH_FAILURE 4
39
void incoming_push_message (struct context *c,
40
const struct buffer *buffer);
42
int process_incoming_push_msg (struct context *c,
43
const struct buffer *buffer,
44
bool honor_received_options,
45
unsigned int permission_mask,
46
int *option_types_found);
48
bool send_push_request (struct context *c);
50
void receive_auth_failed (struct context *c, const struct buffer *buffer);
54
void push_option (struct options *o, const char *opt, int msglevel);
56
void push_reset (struct options *o);
58
bool send_push_reply (struct context *c);
60
void remove_iroutes_from_push_route_list (struct options *o);
62
bool send_auth_failed (struct context *c);