~ubuntu-branches/ubuntu/hardy/openvpn/hardy-security

« back to all changes in this revision

Viewing changes to push.h

  • Committer: Bazaar Package Importer
  • Author(s): Alberto Gonzalez Iniesta
  • Date: 2005-01-05 19:03:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050105190311-mvqzpuhmlvobg9nh
Tags: 1.99+2.rc6-1
* The 'Three Wise Men' release.
* New upstream release.
* Update README.Debian with comments on changed string remapping.
  Thanks ron@debian.org for noting this first. (Closes: #288669)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
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
 
6
 *             packet compression.
 
7
 *
 
8
 *  Copyright (C) 2002-2004 James Yonan <jim@yonan.net>
 
9
 *
 
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.
 
14
 *
 
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.
 
19
 *
 
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
 
24
 */
 
25
 
 
26
#ifndef PUSH_H
 
27
#define PUSH_H
 
28
 
 
29
#if P2MP
 
30
 
 
31
#include "forward.h"
 
32
 
 
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
 
38
 
 
39
void incoming_push_message (struct context *c,
 
40
                            const struct buffer *buffer);
 
41
 
 
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);
 
47
 
 
48
bool send_push_request (struct context *c);
 
49
 
 
50
void receive_auth_failed (struct context *c, const struct buffer *buffer);
 
51
 
 
52
#if P2MP_SERVER
 
53
 
 
54
void push_option (struct options *o, const char *opt, int msglevel);
 
55
 
 
56
void push_reset (struct options *o);
 
57
 
 
58
bool send_push_reply (struct context *c);
 
59
 
 
60
void remove_iroutes_from_push_route_list (struct options *o);
 
61
 
 
62
bool send_auth_failed (struct context *c);
 
63
 
 
64
#endif
 
65
#endif
 
66
#endif