Skip to content

Commit da846e7

Browse files
committed
Continued consolidation of libopenvpn into separate package.
1 parent 3c2544d commit da846e7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

85 files changed

+18927
-1
lines changed

Makefile.am

+81-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ AUTOMAKE_OPTIONS = 1.4 gnu
55

66
include $(top_srcdir)/lib/ltrc.inc
77

8-
AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) -I$(top_srcdir)/lib -I$(top_srcdir)/tme/libopenvpn -I. -D_TME_IMPL
8+
AM_CPPFLAGS = -I$(top_srcdir) -I$(srcdir) -I$(top_srcdir)/lib -I. -D_TME_IMPL
99

1010
lib_LTLIBRARIES = libopenvpn.la
1111
libopenvpn_la_SOURCES = \
@@ -92,3 +92,83 @@ if WIN32
9292
libopenvpn_la_SOURCES += openvpn_win32_resources.rc
9393
libopenvpn_la_LIBADD += -lgdi32 -lws2_32 -lwininet -lcrypt32 -liphlpapi -lwinmm
9494
endif
95+
96+
libopenvpndir = $(includedir)/libopenvpn
97+
98+
libopenvpn_HEADERS = \
99+
base64.h \
100+
basic.h \
101+
buffer.h \
102+
circ_list.h \
103+
clinat.h \
104+
common.h \
105+
console.h \
106+
cryptoapi.h \
107+
crypto.h crypto_backend.h \
108+
crypto_openssl.h \
109+
crypto_polarssl.h \
110+
dhcp.h \
111+
errlevel.h \
112+
error.h \
113+
event.h \
114+
fdmisc.h \
115+
forward.h forward-inline.h \
116+
fragment.h \
117+
gremlin.h \
118+
helper.h \
119+
httpdigest.h \
120+
init.h \
121+
integer.h \
122+
interval.h \
123+
list.h \
124+
lladdr.h \
125+
lzo.h \
126+
manage.h \
127+
mbuf.h \
128+
memdbg.h \
129+
misc.h \
130+
mroute.h \
131+
mss.h \
132+
mstats.h \
133+
mtcp.h \
134+
mtu.h \
135+
mudp.h \
136+
multi.h \
137+
ntlm.h \
138+
occ.h occ-inline.h \
139+
openvpn.h \
140+
openvpn-plugin.h \
141+
options.h \
142+
otime.h \
143+
packet_id.h \
144+
perf.h \
145+
pf.h pf-inline.h \
146+
ping.h ping-inline.h \
147+
pkcs11.h pkcs11_backend.h \
148+
platform.h \
149+
plugin.h \
150+
pool.h \
151+
proto.h \
152+
proxy.h \
153+
ps.h \
154+
push.h \
155+
pushlist.h \
156+
reliable.h \
157+
route.h \
158+
schedule.h \
159+
session_id.h \
160+
shaper.h \
161+
sig.h \
162+
socket.h \
163+
socks.h \
164+
ssl.h ssl_backend.h \
165+
ssl_openssl.h \
166+
ssl_polarssl.h \
167+
ssl_common.h \
168+
ssl_verify.h ssl_verify_backend.h \
169+
ssl_verify_openssl.h \
170+
ssl_verify_polarssl.h \
171+
status.h \
172+
syshead.h \
173+
tun.h \
174+
win32.h

base64.h

+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/*
2+
* Copyright (c) 1995, 1996, 1997 Kungliga Tekniska Högskolan
3+
* (Royal Institute of Technology, Stockholm, Sweden).
4+
* All rights reserved.
5+
*
6+
* Redistribution and use in source and binary forms, with or without
7+
* modification, are permitted provided that the following conditions
8+
* are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright
11+
* notice, this list of conditions and the following disclaimer.
12+
*
13+
* 2. Redistributions in binary form must reproduce the above copyright
14+
* notice, this list of conditions and the following disclaimer in the
15+
* documentation and/or other materials provided with the distribution.
16+
*
17+
* 3. Neither the name of the Institute nor the names of its contributors
18+
* may be used to endorse or promote products derived from this software
19+
* without specific prior written permission.
20+
*
21+
* THIS SOFTWARE IS PROVIDED BY THE INSTITUTE AND CONTRIBUTORS ``AS IS'' AND
22+
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
23+
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
24+
* ARE DISCLAIMED. IN NO EVENT SHALL THE INSTITUTE OR CONTRIBUTORS BE LIABLE
25+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
26+
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
27+
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
28+
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
29+
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
30+
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
31+
* SUCH DAMAGE.
32+
*/
33+
34+
#ifndef _BASE64_H_
35+
#define _BASE64_H_
36+
37+
#if defined(ENABLE_HTTP_PROXY) || defined(ENABLE_PKCS11) || defined(ENABLE_CLIENT_CR) || defined(MANAGMENT_EXTERNAL_KEY)
38+
39+
int openvpn_base64_encode(const void *data, int size, char **str);
40+
int openvpn_base64_decode(const char *str, void *data, int size);
41+
42+
#endif
43+
44+
#endif

basic.h

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* OpenVPN -- An application to securely tunnel IP networks
3+
* over a single 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-2010 OpenVPN Technologies, Inc. <[email protected]>
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 version 2
12+
* as published by the Free Software Foundation.
13+
*
14+
* This program is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU General Public License
20+
* along with this program (see the file COPYING included with this
21+
* distribution); if not, write to the Free Software Foundation, Inc.,
22+
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
23+
*/
24+
25+
#ifndef BASIC_H
26+
#define BASIC_H
27+
28+
#define BOOL_CAST(x) ((x) ? (true) : (false))
29+
30+
/* size of an array */
31+
#define SIZE(x) (sizeof(x)/sizeof(x[0]))
32+
33+
/* clear an object */
34+
#define CLEAR(x) memset(&(x), 0, sizeof(x))
35+
36+
#define IPV4_NETMASK_HOST 0xffffffffU
37+
38+
#endif

0 commit comments

Comments
 (0)