0
0
mirror of https://github.com/OpenVPN/openvpn.git synced 2024-09-20 12:02:28 +02:00
OpenVPN is an open source VPN daemon
Go to file
David Sommerseth a4234e1e26 Enable access() when building in Visual Studio
Visual Studio does not enable certiain standard Unix functions,
such as access().  By defining _CRT_NONSTDC_NO_WARNINGS and
_CRT_SECURE_NO_WARNINGS, these functions are enabled.

This patch also adds a ./configure check for access() as well,
in case this needs to be implemented on other platforms lacking
this feature.  Which is why HAVE_ACCESS is defined in win/config.h.in

Thanks to Alon Bar-Lev for helping solving this.

Signed-off-by: David Sommerseth <davids@redhat.com>
Acked-by: Alon Bar-Lev <alon.barlev@gmail.com>
Acked-by: Gert Doering <gert@greenie.muc.de>
URL: http://thread.gmane.org/gmane.network.openvpn.devel/5179/focus=5200
2012-01-10 19:50:15 +01:00
contrib Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
debug Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
doxygen Added PolarSSL support: 2011-10-22 14:35:16 +02:00
easy-rsa Fixes to easy-rsa/2.0 2011-07-01 11:35:43 +02:00
images Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
install-win32 Made domake-win builds to use easy-rsa/2.0/openssl-1.0.0.cnf 2011-07-01 11:35:43 +02:00
management Merge remote branch SVN 2.1 into the git tree 2011-08-19 08:46:43 +02:00
msvc Change all CRLF linefeeds to LF linefeeds 2011-04-14 16:38:24 +02:00
plugin Further improvements to plugin support: 2011-10-22 17:22:51 +02:00
sample-config-files Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
sample-keys Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
sample-scripts Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
service-win32 Merge branch 'svn-branch-2.1' into merge 2011-04-26 23:04:18 +02:00
suse Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
tap-win32 add missing break between "case IPv4" and "case IPv6", leading to the 2011-11-10 20:25:59 +01:00
win Enable access() when building in Visual Studio 2012-01-10 19:50:15 +01:00
.gitignore add .gitignore to official repository 2011-08-24 14:52:47 +02:00
.mailmap Added mapping files from SVN commit ID to more descriptive commit IDs. 2010-10-21 11:31:26 +02:00
.svncommitters Added mapping files from SVN commit ID to more descriptive commit IDs. 2010-10-21 11:31:26 +02:00
.svnignore Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
acinclude.m4 * ipv6-0.4.16: fix mingw32 build 2011-03-27 23:41:22 +02:00
AUTHORS Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
base64.c Modified base64 code in preparation for PolarSSL merge 2011-10-22 11:44:36 +02:00
base64.h Modified base64 code in preparation for PolarSSL merge 2011-10-22 11:44:36 +02:00
basic.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
buffer.c Minor fix to CC_PRINT char class -- treat DEL (ascii 127) 2011-09-01 08:40:48 +02:00
buffer.h Added memory management documentation 2011-07-28 23:25:07 +02:00
ChangeLog Preparing for the v2.2-RC2 release 2011-03-24 22:01:20 +01:00
ChangeLog.IPv6 Windows IPv6 cleanup - properly remove IPv6 routes and interface config 2011-05-22 19:08:22 +02:00
circ_list.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
clinat.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
clinat.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
common.h Merge branch 'svn-branch-2.1' into merge 2011-04-26 23:04:18 +02:00
compat.c Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
compat.h Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
configure_h.awk Add comile time information/settings from ./configure to --version 2010-10-21 21:18:17 +02:00
configure_log.awk Fix dependency checking for configure.h (v2) 2010-10-21 21:21:05 +02:00
configure.ac Enable access() when building in Visual Studio 2012-01-10 19:50:15 +01:00
COPYING Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
COPYRIGHT.GPL Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
crypto_backend.h Got rid of a few magic numbers in ntlm.c 2011-10-24 12:46:02 +02:00
crypto_openssl.c Moved prng_uninit out of crypto_uninit_lib 2011-11-21 11:51:39 +01:00
crypto_openssl.h Got rid of a few magic numbers in ntlm.c 2011-10-24 12:46:02 +02:00
crypto_polarssl.c Moved prng_uninit out of crypto_uninit_lib 2011-11-21 11:51:39 +01:00
crypto_polarssl.h Got rid of a few magic numbers in ntlm.c 2011-10-24 12:46:02 +02:00
crypto.c Minor cleanup to enable warning-free Windows build: 2011-11-21 11:51:39 +01:00
crypto.h Hardening: periodically reset the PRNG's nonce value 2011-10-22 17:22:51 +02:00
cryptoapi.c Disable CryptoAPI when not using OpenSSL, and document that fact. 2011-10-22 16:00:49 +02:00
cryptoapi.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
dhcp.c Fixed client issues with DHCP Router option extraction/deletion when 2011-12-14 17:04:05 +01:00
dhcp.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
doclean Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
domake-win Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
doval Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
dovalns Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
errlevel.h Raised D_PID_DEBUG_LOW from level 3 to 4 to reduce replay error 2011-12-14 17:02:44 +01:00
error.c Added "memstats" option to maintain real-time operating stats 2011-12-14 17:03:24 +01:00
error.h Refactored: made M_SSL dependent on USE_OPENSSL 2011-10-22 11:32:40 +02:00
event.c Added optional journal directory argument to "port-share" directive, for reporting client IP origins of proxied connections. 2011-04-25 22:13:22 +02:00
event.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
fdmisc.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
fdmisc.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
forward-inline.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
forward.c Fixed client issues with DHCP Router option extraction/deletion when 2011-12-14 17:04:05 +01:00
forward.h Added main/control docs 2011-07-28 23:56:24 +02:00
fragment.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
fragment.h Added data channel fragmentation docs 2011-07-28 23:27:58 +02:00
gremlin.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
gremlin.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
helper.c Fixed a number of fatal build errors on Visual Studio 2008 2011-08-25 20:12:37 +02:00
helper.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
httpdigest.c Refactored message digest functions 2011-10-19 22:13:25 +02:00
httpdigest.h Change all CRLF linefeeds to LF linefeeds 2011-04-14 16:38:24 +02:00
init.c Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
init.h Enable IPv6 Payload in OpenVPN p2mp tun server mode. 20100104-1 release. 2011-04-24 17:22:34 +02:00
INSTALL Removed Win2k from supported platforms list in INSTALL and win/openvpn.nsi 2011-04-14 21:16:39 +02:00
INSTALL-win32.txt Updated INSTALL-win32.txt 2011-03-21 15:15:22 +01:00
integer.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
interval.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
interval.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
list.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
list.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
lladdr.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
lladdr.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
lzo.c Added compression docs 2011-07-28 23:17:51 +02:00
lzo.h Added compression docs 2011-07-28 23:17:51 +02:00
Makefile.am Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
manage.c Fixed management interface bug where >FATAL notifications were 2011-09-05 12:06:03 +02:00
manage.h Added "management-query-remote" directive (client) to allow 2011-07-05 00:33:55 +00:00
mbuf.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
mbuf.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
memcmp.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
memdbg.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
misc.c Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
misc.h Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
mroute.c USE_PF_INET6 by default for v2.3 2011-08-25 20:19:58 +02:00
mroute.h Enable IPv6 Payload in OpenVPN p2mp tun server mode. 20100104-1 release. 2011-04-24 17:22:34 +02:00
mss.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
mss.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
mstats.c Added "memstats" option to maintain real-time operating stats 2011-12-14 17:03:24 +01:00
mstats.h Added "memstats" option to maintain real-time operating stats 2011-12-14 17:03:24 +01:00
mtcp.c USE_PF_INET6 by default for v2.3 2011-08-25 20:19:58 +02:00
mtcp.h Added main/control docs 2011-07-28 23:56:24 +02:00
mtu.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
mtu.h Added main/control docs 2011-07-28 23:56:24 +02:00
mudp.c Added main/control docs 2011-07-28 23:56:24 +02:00
mudp.h Added main/control docs 2011-07-28 23:56:24 +02:00
multi.c Added "memstats" option to maintain real-time operating stats 2011-12-14 17:03:24 +01:00
multi.h New feauture: Add --stale-routes-check 2011-09-30 09:48:42 +02:00
NEWS Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ntlm.c Got rid of a few magic numbers in ntlm.c 2011-10-24 12:46:02 +02:00
ntlm.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
occ-inline.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
occ.c * rebased openvpn-2.1_rc1b.jjo.20061206.d.patch 2011-03-25 13:30:28 +01:00
occ.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
openvpn-plugin.h Further improvements to plugin support: 2011-10-22 17:22:51 +02:00
openvpn.8 Make '--win-sys env' default 2011-11-23 11:53:22 +01:00
openvpn.c Make '--win-sys env' default 2011-11-23 11:53:22 +01:00
openvpn.h Refactored root SSL context initialisation 2011-10-19 22:31:46 +02:00
openvpn.spec.in Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
options.c Enable access() when building in Visual Studio 2012-01-10 19:50:15 +01:00
options.h Fix build-up of duplicate IPv6 routes on reconnect. 2012-01-04 11:46:49 +01:00
otime.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
otime.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
packet_id.c Increased the --verb threshold for "PID_ERR replay" messages 2011-08-24 13:33:12 +02:00
packet_id.h Fixed bug that incorrectly placed stricter TCP packet replay rules on 2011-04-26 22:29:11 +02:00
perf.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
perf.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
pf-inline.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
pf.c Fixes for the plugin system: 2011-10-22 17:22:51 +02:00
pf.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ping-inline.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ping.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ping.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
pkcs11_backend.h Separated OpenSSL-specific parts of the PKCS#11 driver 2011-10-22 11:43:28 +02:00
pkcs11_openssl.c Fixed disabling crypto and SSL 2011-10-24 12:35:51 +02:00
pkcs11_polarssl.c Minor cleanup to enable warning-free Windows build: 2011-11-21 11:51:39 +01:00
pkcs11.c Modified base64 code in preparation for PolarSSL merge 2011-10-22 11:44:36 +02:00
pkcs11.h Separated OpenSSL-specific parts of the PKCS#11 driver 2011-10-22 11:43:28 +02:00
plugin.c Fixes for the plugin system: 2011-10-22 17:22:51 +02:00
plugin.h Reordered functions to ensure warning-free Windows build 2011-11-21 11:51:39 +01:00
pool.c Enable IPv6 Payload in OpenVPN p2mp tun server mode. 20100104-1 release. 2011-04-24 17:22:34 +02:00
pool.h Enable IPv6 Payload in OpenVPN p2mp tun server mode. 20100104-1 release. 2011-04-24 17:22:34 +02:00
PORTS Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
proto.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
proto.h Merge branch 'svn-branch-2.1' into merge 2011-04-26 23:04:18 +02:00
proxy.c Modified base64 code in preparation for PolarSSL merge 2011-10-22 11:44:36 +02:00
proxy.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ps.c Fix 2.2.0 build failure when management interface disabled 2011-05-19 18:21:24 +02:00
ps.h Added optional journal directory argument to "port-share" directive, for reporting client IP origins of proxied connections. 2011-04-25 22:13:22 +02:00
push.c Merge branch 'svn-branch-2.1' into merge 2011-04-26 23:04:18 +02:00
push.h Extended "client-kill" management interface command (server-side) 2011-04-26 22:29:11 +02:00
pushlist.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
README Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
README.IPv6 Merged TODO.IPv6 with TODO.ipv6 and README.IPv6 with README.ipv6 2011-08-24 15:02:42 +02:00
README.polarssl Disabled X.509 track and username selection for PolarSSL 2011-10-22 16:00:49 +02:00
reliable.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
reliable.h Added reliability layer documentation 2011-07-28 23:22:51 +02:00
route.c Fix list-overrun checks in copy_route_[ipv6_]option_list() 2012-01-04 12:04:42 +01:00
route.h Fix build-up of duplicate IPv6 routes on reconnect. 2012-01-04 11:46:49 +01:00
schedule.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
schedule.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
session_id.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
session_id.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
shaper.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
shaper.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
sig.c Misc fixes to r6708. 2011-03-25 09:38:48 +01:00
sig.h Misc fixes to r6708. 2011-03-25 09:38:48 +01:00
socket.c work around inet_ntop/inet_pton problems for MSVC builds on WinXP 2011-11-25 17:21:35 +01:00
socket.h fix ipv6 compilation under macosx >= 1070 - v3 2011-09-21 15:19:41 +02:00
socks.c * rebased openvpn-2.1_rc1b.jjo.20061206.d.patch 2011-03-25 13:30:28 +01:00
socks.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
sources Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
ssl_backend.h Removed stray X509_free from ssl.c 2011-10-22 16:00:49 +02:00
ssl_common.h Refactored: removed global x509_username_field 2011-10-21 14:51:45 +02:00
ssl_openssl.c Fixed a typo when initialising cryptoapi certs 2011-11-21 11:51:40 +01:00
ssl_openssl.h Refactored tls_options, key_state, and key_source data structures 2011-10-21 10:53:31 +02:00
ssl_polarssl.c Minor cleanup to enable warning-free Windows build: 2011-11-21 11:51:39 +01:00
ssl_polarssl.h Added PolarSSL support: 2011-10-22 14:35:16 +02:00
ssl_verify_backend.h Unified verification function return values: 2011-10-22 18:20:55 +02:00
ssl_verify_openssl.c Minor cleanup to enable warning-free Windows build: 2011-11-21 11:51:39 +01:00
ssl_verify_openssl.h Refactored: split verify_callback into two parts 2011-10-21 14:51:45 +02:00
ssl_verify_polarssl.c Minor cleanup to enable warning-free Windows build: 2011-11-21 11:51:39 +01:00
ssl_verify_polarssl.h Added PolarSSL support: 2011-10-22 14:35:16 +02:00
ssl_verify.c Fixed disabling crypto and SSL 2011-10-24 12:35:51 +02:00
ssl_verify.h Added missing #ifdef to allow --disable-managent to work again 2011-10-24 12:20:23 +02:00
ssl.c Moved CryptoAPI header include to the ssl_openssl.c 2011-11-21 11:51:39 +01:00
ssl.h Cleaned up ssl.h 2011-10-22 11:32:40 +02:00
status.c Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
status.h Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
syshead.h Move away from openvpn_basename() over to platform provided basename() 2012-01-10 19:38:35 +01:00
t_client.rc-sample full "VPN client connect" test framework for OpenVPN 2010-10-21 11:40:36 +02:00
t_client.sh.in More t_client.sh updates - exit with SKIP when we want to skip 2010-10-21 11:40:36 +02:00
t_cltsrv-down.sh Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
t_cltsrv.sh Skip rather than fail test in addressless FreeBSD jails. 2011-08-24 17:14:23 +02:00
t_lpback.sh Renamed branch to reflect that it is no longer beta. 2011-03-17 04:55:47 +00:00
TODO.IPv6 Merged TODO.IPv6 with TODO.ipv6 and README.IPv6 with README.ipv6 2011-08-24 15:02:42 +02:00
tun.c Allow "tap-win32 dynamic <offset>" to be used in topology 2011-12-14 17:06:24 +01:00
tun.h drop "book ipv6" from open_tun() and tuncfg() prototypes 2011-04-24 17:22:40 +02:00
version.m4 bump tap driver version from 9.8 to 9.9 2011-11-23 12:57:10 +01:00
win32.c Make '--win-sys env' default 2011-11-23 11:53:22 +01:00
win32.h work around inet_ntop/inet_pton problems for MSVC builds on WinXP 2011-11-25 17:21:35 +01:00

OpenVPN -- A Secure tunneling daemon

Copyright (C) 2002-2010 OpenVPN Technologies, Inc. This program is free software;
you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.

*************************************************************************

For the latest version of OpenVPN, go to:

	http://openvpn.net/

To Build and Install,

	./configure
	make
	make install

or see the file INSTALL for more info.

*************************************************************************

For detailed information on OpenVPN, including examples, see the man page
  http://openvpn.net/man.html

For a sample VPN configuration, see
  http://openvpn.net/howto.html

For a description of OpenVPN's underlying protocol,
  see the file ssl.h included in the source distribution.

*************************************************************************

Other Files & Directories:

* INSTALL-win32.txt -- installation instructions
  for Windows

* configure.ac -- script to rebuild our configure
  script and makefile.

* openvpn.spec -- RPM Spec file
  To build an OpenVPN binary RPM, use the command:

	rpmbuild -tb [tarball]

  When you install the binary RPM, it will automatically
  install sample-scripts/openvpn.init (see below)

* sample-scripts/openvpn.init

  A sample init script for OpenVPN.  See the file for
  comments and additional information.

* sample-scripts/verify-cn

  A sample perl script which can be used with OpenVPN's
  --tls-verify option to provide a customized authentication
  test on embedded X509 certificate fields.

* sample-keys/

  Sample RSA keys and certificates.  DON'T USE THESE FILES
  FOR ANYTHING OTHER THAN TESTING BECAUSE THEY ARE TOTALLY INSECURE.

* sample-config-files/

  A collection of OpenVPN config files and scripts from
  the HOWTO at http://openvpn.net/howto.html

* easy-rsa/

  A simple guide to RSA key management, scripts included.
  Also see http://openvpn.net/easyrsa.html