]> git.ipfire.org Git - thirdparty/openvpn.git/log
thirdparty/openvpn.git
16 years agoExtended Management Interface "bytecount" command
james [Fri, 24 Oct 2008 09:21:40 +0000 (09:21 +0000)] 
Extended Management Interface "bytecount" command
to work when OpenVPN is running as a server.

Documented Management Interface "bytecount" command in
management/management-notes.txt.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3452 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded optional files SAMPCONF_CONF2 (second sample configuration
james [Fri, 24 Oct 2008 06:04:34 +0000 (06:04 +0000)] 
Added optional files SAMPCONF_CONF2 (second sample configuration
file) and SAMPCONF_DH (Diffie-Helman parameters) to Windows
build system, and may be defined in settings.in.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3450 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoModified Windows domake-win build system to write all openvpn.nsi
james [Fri, 17 Oct 2008 08:15:22 +0000 (08:15 +0000)] 
Modified Windows domake-win build system to write all openvpn.nsi
input files to gen, so that gen can be disconnected from
the rest of the source tree and makensis openvpn.nsi will
still function correctly.

Added additional SAMPCONF_(CA|CRT|KEY) macros to settings.in
(commented out by default).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3439 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded additional warning messages about --script-security 2
james [Wed, 15 Oct 2008 08:20:21 +0000 (08:20 +0000)] 
Added additional warning messages about --script-security 2
or higher being required to execute user-defined scripts or
executables.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3436 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded AC_GNU_SOURCE to configure.ac to enable struct ucred,
james [Tue, 14 Oct 2008 05:21:51 +0000 (05:21 +0000)] 
Added AC_GNU_SOURCE to configure.ac to enable struct ucred,
with the goal of fixing a build issue on Fedora 9 that was
introduced in 2.1_rc13.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3434 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc13 v2.1_rc13
james [Wed, 8 Oct 2008 04:53:19 +0000 (04:53 +0000)] 
Version 2.1_rc13

Minor fixes to Windows build scripts.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3417 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoCopyright notice changed to reflect change in name of
james [Mon, 6 Oct 2008 07:33:45 +0000 (07:33 +0000)] 
Copyright notice changed to reflect change in name of
Telethra to OpenVPN Technologies.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3409 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoManagement interface can now listen on a unix
james [Tue, 30 Sep 2008 06:11:38 +0000 (06:11 +0000)] 
Management interface can now listen on a unix
domain socket, for example:

  management /tmp/openvpn unix

Also added management-client-user and management-client-group
directives to control which processes are allowed to connect
to the socket.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3396 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc12 v2.1_rc12
james [Tue, 23 Sep 2008 14:29:27 +0000 (14:29 +0000)] 
Version 2.1_rc12

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3349 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed --lladdr bug introduced in 2.1-rc9 where input validation code
james [Fri, 19 Sep 2008 20:12:43 +0000 (20:12 +0000)] 
Fixed --lladdr bug introduced in 2.1-rc9 where input validation code
was incorrectly expecting the lladdr parameter to be an IP address
when it is actually a MAC address (HoverHell).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3339 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoPatched Makefile.am so that the new t_cltsrv-down.sh script becomes
james [Mon, 15 Sep 2008 23:39:53 +0000 (23:39 +0000)] 
Patched Makefile.am so that the new t_cltsrv-down.sh script becomes
part of the tarball (Matthias Andree).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3332 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc11 v2.1_rc11
james [Mon, 15 Sep 2008 01:46:29 +0000 (01:46 +0000)] 
Version 2.1_rc11

Fixed a bug that can cause SSL/TLS negotiations in UDP mode
to fail if UDP packets are dropped.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3330 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc10 v2.1_rc10
james [Wed, 10 Sep 2008 07:16:14 +0000 (07:16 +0000)] 
Version 2.1_rc10

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3323 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoVersion 2.1_rc9b
james [Mon, 8 Sep 2008 04:00:11 +0000 (04:00 +0000)] 
Version 2.1_rc9b

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3318 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed bug in intra-session TLS key rollover that was introduced with
james [Mon, 8 Sep 2008 03:52:52 +0000 (03:52 +0000)] 
Fixed bug in intra-session TLS key rollover that was introduced with
deferred authentication features in 2.1_rc8.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3316 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoModified ip_or_dns_addr_safe, which validates pulled DNS names,
james [Sat, 6 Sep 2008 10:43:31 +0000 (10:43 +0000)] 
Modified ip_or_dns_addr_safe, which validates pulled DNS names,
to more closely conform to RFC 3696:

* DNS name length must not exceed 255 characters

* DNS name characters must be limited to alphanumeric,
  dash ('-'), and dot ('.')

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3312 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years ago2.1_rc8 and earlier did implicit shell expansion on script
james [Sat, 6 Sep 2008 09:42:17 +0000 (09:42 +0000)] 
2.1_rc8 and earlier did implicit shell expansion on script
arguments since all scripts were called by system().
The security hardening changes made to 2.1_rc9 no longer
use system(), but rather use the safer execve or CreateProcess
system calls.  The security hardening also introduced a
backward incompatibility with 2.1_rc8 and earlier in that
script parameters were no longer shell-expanded, so
for example:

  client-connect "docc CLIENT-CONNECT"

would fail to work because execve would try to execute
a script called "docc CLIENT-CONNECT" instead of "docc"
with "CLIENT-CONNECT" as the first argument.

This patch fixes the issue, bringing the script argument
semantics back to pre 2.1_rc9 behavior in order to preserve
backward compatibility while still using execve or CreateProcess
to execute the script/executable.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3311 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoAdded --allow-pull-fqdn option which allows client to pull DNS names
james [Thu, 4 Sep 2008 20:35:09 +0000 (20:35 +0000)] 
Added --allow-pull-fqdn option which allows client to pull DNS names
from server (rather than only IP address) for --ifconfig, --route, and
--route-gateway.  OpenVPN versions 2.1_rc7 and earlier allowed DNS names
for these options to be pulled and translated to IP addresses by default.
Now --allow-pull-fqdn will be explicitly required on the client to enable
DNS-name-to-IP-address translation of pulled options.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3307 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoFixed minor compile issue in ntlm.c (mid-block declaration).
james [Mon, 11 Aug 2008 13:12:34 +0000 (13:12 +0000)] 
Fixed minor compile issue in ntlm.c (mid-block declaration).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3222 e7ae566f-a301-0410-adde-c780ea21d3b5

16 years agoLZO compression buffer overflow errors will now invalidate
james [Mon, 11 Aug 2008 03:37:40 +0000 (03:37 +0000)] 
LZO compression buffer overflow errors will now invalidate
the packet rather than trigger a fatal assertion.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3221 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoWorkaround bug in OpenSSL 0.9.6b ASN1_STRING_to_UTF8, which
james [Sun, 10 Aug 2008 22:37:18 +0000 (22:37 +0000)] 
Workaround bug in OpenSSL 0.9.6b ASN1_STRING_to_UTF8, which
the new implementation of extract_x509_field_ssl depends on.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3220 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed build issue with ./configure --disable-socks --disable-http.
james [Sun, 10 Aug 2008 19:29:00 +0000 (19:29 +0000)] 
Fixed build issue with ./configure --disable-socks --disable-http.

Fixed separate compile errors in options.c and ntlm.c that occur
on strict C compilers (such as old versions of gcc) that require
that C variable declarations occur at the start of a {} block,
not in the middle.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3219 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoTagged security fix in 2.1-rc9 as CVE-2008-3459.
james [Sun, 10 Aug 2008 19:05:02 +0000 (19:05 +0000)] 
Tagged security fix in 2.1-rc9 as CVE-2008-3459.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3218 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated openvpn/t_cltsrv.sh (used by "make check") to conform to new
james [Sun, 10 Aug 2008 18:49:28 +0000 (18:49 +0000)] 
Updated openvpn/t_cltsrv.sh (used by "make check") to conform to new
--script-security rules.  Also adds retrying if the addresses are in
use (Matthias Andree).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3217 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReverted r3181, accomplish the same thing via a special case
james [Tue, 5 Aug 2008 20:34:43 +0000 (20:34 +0000)] 
Reverted r3181, accomplish the same thing via a special case
for Windows stdcall functions in configure.ac (Alon Bar-Lev).

Minor fix to cryptoapi.c to not compile itself unless USE_CRYPTO
and USE_SSL flags are enabled (Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3183 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoWorkaround for MinGW autoconf issue where HAVE_SETSOCKOPT,
james [Tue, 5 Aug 2008 07:52:06 +0000 (07:52 +0000)] 
Workaround for MinGW autoconf issue where HAVE_SETSOCKOPT,
HAVE_GETSOCKOPT, and HAVE_POLL are undefined even though
the underlying functions are present.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3181 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional warnings to flag common gotchas:
james [Tue, 5 Aug 2008 04:44:31 +0000 (04:44 +0000)] 
Added additional warnings to flag common gotchas:

* Warn when ethernet bridging that the IP address of the
  bridge adapter is probably not the same address that
  the LAN adapter was set to previously.

* When running as a server, warn if the LAN network address is
  the all-popular 192.168.[0|1].x, since this condition commonly
  leads to subnet conflicts down the road.

* Primarily on the client, check for subnet conflicts between
  the local LAN and the VPN subnet.

Added a 'netmask' parameter to get_default_gateway, to return
the netmask of the adapter containing the default gateway.
Only implemented on Windows so far.  Other platforms will
return 255.255.255.0.  Currently the netmask information is
only used to warn about subnet conflicts.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3179 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed minor issue with --redirect-gateway bypass-dhcp or bypass-dns
james [Mon, 4 Aug 2008 19:01:11 +0000 (19:01 +0000)] 
Fixed minor issue with --redirect-gateway bypass-dhcp or bypass-dns
on Windows.  If the bypass IP address is 0.0.0.0 or 255.255.255.255,
ignore it.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3177 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded "--server-bridge" (without parameters) to enable
james [Sat, 2 Aug 2008 08:02:53 +0000 (08:02 +0000)] 
Added "--server-bridge" (without parameters) to enable
DHCP proxy mode:  Configure server mode for ethernet
bridging using a DHCP-proxy, where clients talk to the
OpenVPN server-side DHCP server to receive their IP address
allocation and DNS server addresses.

Added "--route-gateway dhcp", to enable the extraction
of the gateway address from a DHCP negotiation with the
OpenVPN server-side LAN.

Modified client.conf and server.conf to reflect new option
modes.

Incremented version to 2.1_rc9a.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3164 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVersion 2.1_rc9 v2.1_rc9
james [Fri, 1 Aug 2008 06:50:39 +0000 (06:50 +0000)] 
Version 2.1_rc9

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3155 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIn Windows build, package a statically linked openssl.exe to work around
james [Thu, 31 Jul 2008 22:03:38 +0000 (22:03 +0000)] 
In Windows build, package a statically linked openssl.exe to work around
observed instabilities in the dynamic build since the migration to
OpenSSL 0.9.8h.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3149 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated ChangeLog and version number.
james [Thu, 31 Jul 2008 17:44:52 +0000 (17:44 +0000)] 
Updated ChangeLog and version number.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3147 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional warnings for:
james [Sun, 27 Jul 2008 18:20:52 +0000 (18:20 +0000)] 
Added additional warnings for:

* --tls-remote -- some people misunderstand the semantics

* --script-security -- warn if script-security will allow user-defined
  scripts to be called, and also warn separately if passwords may be
  passed to scripts via the environment

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3129 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded additional defensive programming to buffer.[ch] functions.
james [Sun, 27 Jul 2008 05:31:09 +0000 (05:31 +0000)] 
Added additional defensive programming to buffer.[ch] functions.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3128 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded a warning message when passwords are cached in memory.
james [Sun, 27 Jul 2008 00:43:49 +0000 (00:43 +0000)] 
Added a warning message when passwords are cached in memory.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3127 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoPerform additional input validation on options pulled
james [Sat, 26 Jul 2008 23:08:29 +0000 (23:08 +0000)] 
Perform additional input validation on options pulled
by client from server.  Fixes --iproute vulnerability.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3126 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed compiler warnings in Windows build (MinGW).
james [Sat, 26 Jul 2008 08:27:50 +0000 (08:27 +0000)] 
Fixed compiler warnings in Windows build (MinGW).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3125 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCompletely revamped the system for calling external programs and scripts:
james [Sat, 26 Jul 2008 07:27:03 +0000 (07:27 +0000)] 
Completely revamped the system for calling external programs and scripts:

* All external programs and scripts are now called by execve() on unix and
  CreateProcess on Windows.

* The system() function is no longer used.

* Argument lists for external programs and scripts are now built by the new
  argv_printf function which natively outputs to string arrays (i.e.
  char *argv[] lists), never truncates its output, and eliminates the security
  issues inherent in formatting and parsing command lines, and dealing with
  argument quoting.

* The --script-security directive has been added to offer policy controls on
  OpenVPN's execution of external programs and scripts.

Also added a new plugin example (openvpn/plugin/examples/log.c) that logs
information to stdout for every plugin method called by OpenVPN.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3122 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded argv_x functions to buffer.[ch] to be used to safely build
james [Wed, 23 Jul 2008 19:51:27 +0000 (19:51 +0000)] 
Added argv_x functions to buffer.[ch] to be used to safely build
up argv strings for execve without the possibility of truncation
or misinterpretation of mid-argument spacing.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3107 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agobuf_printf will now return false on errors, such as truncation
james [Sat, 19 Jul 2008 03:39:59 +0000 (03:39 +0000)] 
buf_printf will now return false on errors, such as truncation
due to overflow.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3085 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoModified extract_x509_field_ssl to return a status value indicating
james [Sat, 19 Jul 2008 03:33:27 +0000 (03:33 +0000)] 
Modified extract_x509_field_ssl to return a status value indicating
success/error, and any truncation of output due to an insufficiently
large output buffer will be cause for error.

In verify_callback, read X509 Subject Name without truncation.

In verify_callback, rather than silently truncating Common Name at
64 bytes, throw an error if Common Name is larger than 64 bytes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3084 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReplace leading dash ('-') characters in an X509 name with underbars ('_')
james [Sat, 19 Jul 2008 00:29:31 +0000 (00:29 +0000)] 
Replace leading dash ('-') characters in an X509 name with underbars ('_')
before calling user-defined scripts, to preclude the chance of a leading
dash being interpreted as an option prefix.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3083 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded a warning when plugins are specified without
james [Fri, 18 Jul 2008 23:49:50 +0000 (23:49 +0000)] 
Added a warning when plugins are specified without
an absolute pathname.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3082 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoReverted some recent buffer.[ch] changes, including r3058 (except for
james [Fri, 18 Jul 2008 20:46:06 +0000 (20:46 +0000)] 
Reverted some recent buffer.[ch] changes, including r3058 (except for
likely() and unlikely() macro additions to syshead.h) and r3061.

I would like to give more thought to the bigger issue of fortifying
buffer.[ch] through the use of additional defensive programming techniques.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3081 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed format string issue in read_inline_file,
james [Fri, 18 Jul 2008 07:25:47 +0000 (07:25 +0000)] 
Fixed format string issue in read_inline_file,
used in the config file parser.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3078 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agostatus_printf function will now set error flag on
james [Fri, 18 Jul 2008 07:15:27 +0000 (07:15 +0000)] 
status_printf function will now set error flag on
output truncation or failure of write() to write the
expected number of bytes.

Raised STATUS_PRINTF_MAXLEN to 512 (from 256).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3077 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agogen_path will no longer silently truncate the generated
james [Fri, 18 Jul 2008 00:55:59 +0000 (00:55 +0000)] 
gen_path will no longer silently truncate the generated
filename at 256 bytes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3076 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed code inclusion bug that was erroneously testing
james [Fri, 18 Jul 2008 00:42:37 +0000 (00:42 +0000)] 
Fixed code inclusion bug that was erroneously testing
defined(P2MP_SERVER) rather than P2MP_SERVER.

Fixed compile issues when USE_CRYPTO is undefined.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3075 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoModified create_temp_filename to create unpredictable
james [Fri, 18 Jul 2008 00:32:40 +0000 (00:32 +0000)] 
Modified create_temp_filename to create unpredictable
filenames.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3074 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoPreviously, OpenVPN might log a client's auth-user-pass
james [Thu, 17 Jul 2008 23:31:16 +0000 (23:31 +0000)] 
Previously, OpenVPN might log a client's auth-user-pass
password if the verbosity was set to a high debug level
such as 7 or higher.  Normally this would only be used by
developers.  Now, even at high debug levels, the password
will not be output.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3073 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agogen_path now rejects filenames that match Windows
james [Thu, 17 Jul 2008 22:41:15 +0000 (22:41 +0000)] 
gen_path now rejects filenames that match Windows
device names such as CON, NUL, LPT1, etc.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3072 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCall prng_init after fork in background process
james [Thu, 17 Jul 2008 20:57:42 +0000 (20:57 +0000)] 
Call prng_init after fork in background process
created by port_share_open, so as to ensure
a newly seeded PRNG sequence.  This is strictly
defensive programming since port_share_proxy
currently does not use the PRNG.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3070 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded warning when using chroot without specifying user and group.
james [Thu, 17 Jul 2008 20:47:12 +0000 (20:47 +0000)] 
Added warning when using chroot without specifying user and group.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3069 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCheck for multiplication overflow on ALLOC_ARRAY* functions.
james [Thu, 17 Jul 2008 20:10:18 +0000 (20:10 +0000)] 
Check for multiplication overflow on ALLOC_ARRAY* functions.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3068 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoRemoved old version of extract_x509_field.
james [Thu, 17 Jul 2008 19:07:41 +0000 (19:07 +0000)] 
Removed old version of extract_x509_field.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3066 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoSupport wraparound of reliable.[ch] packet IDs. In
james [Thu, 17 Jul 2008 18:56:09 +0000 (18:56 +0000)] 
Support wraparound of reliable.[ch] packet IDs.  In
practice, wraparound of the packet ID sequence is
extremely unlikely since the sequence is restarted
for each mid-session TLS renegotiation.  But we will
support it for completeness.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3065 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed a potential information leak in the new NTLM phase 3 code,
james [Thu, 17 Jul 2008 05:09:27 +0000 (05:09 +0000)] 
Fixed a potential information leak in the new NTLM phase 3 code,
as well as a failure of the code to check the return value from
base64_decode.

Fixed compiler warnings in the new NTLM phase 3 code about implicit
casting between signed and unsigned char *.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3064 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed issue in read_key_file, where the return value of
james [Thu, 17 Jul 2008 04:25:50 +0000 (04:25 +0000)] 
Fixed issue in read_key_file, where the return value of
read() wasn't being checked for errors.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3063 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded SOCKET_SND_RCV_BUF_MAX constant (set to 1000000) to limit the
james [Wed, 16 Jul 2008 23:11:29 +0000 (23:11 +0000)] 
Added SOCKET_SND_RCV_BUF_MAX constant (set to 1000000) to limit the
maximum size passed to setsockopt SNDBUF/RCVBUF.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3062 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIn the Windows version of tun_finalize, on errors that would
james [Wed, 16 Jul 2008 22:37:09 +0000 (22:37 +0000)] 
In the Windows version of tun_finalize, on errors that would
return -1, set buf->len to 0 rather than -1.  While downstream
code is set up to consider the buffer invalidated if its length
is <= 0, this change makes the code cleaner and safer.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3061 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUsed unlikely() macro to tell compiler that msg() will
james [Wed, 16 Jul 2008 21:50:43 +0000 (21:50 +0000)] 
Used unlikely() macro to tell compiler that msg() will
usually be silent.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3060 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded likely() and unlikely() branch prediction hint macros
james [Wed, 16 Jul 2008 20:36:54 +0000 (20:36 +0000)] 
Added likely() and unlikely() branch prediction hint macros
to syshead.h

Introduced BUF_MAX constant to limit struct buffer offset and length
values.  BUF_MAX has been set to 2^20.

Use likely() and unlikely() macros in buffer.h code to allow the
compiler to generate more efficient code.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3058 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCopyright change OpenVPN Solutions LLC -> Telethra, Inc.
james [Mon, 14 Jul 2008 18:59:09 +0000 (18:59 +0000)] 
Copyright change OpenVPN Solutions LLC -> Telethra, Inc.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@3048 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVersion 2.1_rc8 v2.1_rc8
james [Fri, 13 Jun 2008 07:53:51 +0000 (07:53 +0000)] 
Version 2.1_rc8

On Windows, use -leay32 and -lssl32 to link with OpenSSL.

On Windows, bundle pkcs11-helper-1.06-beta1.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2997 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated copyright notice to 2008.
james [Wed, 11 Jun 2008 21:59:26 +0000 (21:59 +0000)] 
Updated copyright notice to 2008.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2995 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated version & changelog.
james [Wed, 11 Jun 2008 21:38:07 +0000 (21:38 +0000)] 
Updated version & changelog.

Updated build-pkcs11-helper.sh to build
from OpenSSL 0.9.8h.

Added pkcs11-related fixes to easy-rsa/2.0/vars.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2994 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoMerged connection profiles from
james [Wed, 11 Jun 2008 10:48:50 +0000 (10:48 +0000)] 
Merged connection profiles from
http://svn.openvpn.net/projects/openvpn/test/conn

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2993 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpdated version to 2.1_rc7e.
james [Wed, 11 Jun 2008 08:45:09 +0000 (08:45 +0000)] 
Updated version to 2.1_rc7e.

Added client authentication and packet filtering capability
to management interface.

Extended packet filtering capability to work on both --dev tun
and --dev tap tunnels.

Updated valgrind-suppress file.

Made "Linux ip addr del failed" error nonfatal.

Amplified --client-cert-not-required warning.

Added #pragma pack to proto.h.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2991 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded support for building and linking with
james [Wed, 4 Jun 2008 10:53:57 +0000 (10:53 +0000)] 
Added support for building and linking with
openssl-0.9.8h on Windows.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2982 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed unbounded memory growth bug in
james [Wed, 4 Jun 2008 07:23:20 +0000 (07:23 +0000)] 
Fixed unbounded memory growth bug in
environmental variable code that could
have caused long-running OpenVPN sessions
with many TLS renegotiations to incrementally
increase memory usage over time.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2981 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed an issue in extract_x509_field_ssl where the extraction
james [Wed, 4 Jun 2008 06:17:53 +0000 (06:17 +0000)] 
Fixed an issue in extract_x509_field_ssl where the extraction
would fail on the first field of the subject name, such as
the common name in:

  /CN=foo/emailAddress=foo@bar.com

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2980 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIn auth-pam authentication module, even when in debug mode,
james [Wed, 4 Jun 2008 06:00:42 +0000 (06:00 +0000)] 
In auth-pam authentication module, even when in debug mode,
never output passwords to stderr.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2979 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIncremented version to 2.1_rc7d.
james [Wed, 4 Jun 2008 05:16:44 +0000 (05:16 +0000)] 
Incremented version to 2.1_rc7d.

Support asynchronous authentication by plugins by allowing
OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY to return
OPENVPN_PLUGIN_FUNC_DEFERRED.  See comments in
openvpn-plugin.h for documentation.  Enabled by ENABLE_DEF_AUTH.

Added a simple packet filter functionality that can be driven by
a plugin.  See comments in openvpn-plugin.h for documentation.
Enabled by ENABLE_PF.

See openvpn/plugin/defer/simple.c for examples of ENABLE_DEF_AUTH
and ENABLE_PF.

"TLS Error: local/remote TLS keys are out of sync" is no longer a
fatal error for TCP-based sessions, since the error can arise
normally in the course of deferred authentication.  In a related
change, allow packet-id sequence to begin at some number n > 0 for
TCP sessions, rather than strictly requiring sequence to begin
at 1.

Added a test to configure.ac for LoadLibrary function on Windows.

Modified "make dist" function to include all files from
install-win32 so that ./domake-win can be run from a
tarball-expanded directory.

setenv and setenv-safe directives may now omit a value argument
which defaults to "".

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2978 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed a bug in plugin.c that caused openvpn_plugin_client_destructor_v1
james [Sun, 25 May 2008 22:31:25 +0000 (22:31 +0000)] 
Fixed a bug in plugin.c that caused openvpn_plugin_client_destructor_v1
to not be called for the top-level "generic" client template.

Added additional documentation to openvpn-plugin.h that more clearly
illustrates the full sequence and ordering of plugin callbacks
(plugin/defer/simple.c was extended to provide the raw data for this
documentation).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2973 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoSupport asynchronous/deferred authentication in
james [Sat, 24 May 2008 23:26:11 +0000 (23:26 +0000)] 
Support asynchronous/deferred authentication in
OPENVPN_PLUGIN_AUTH_USER_PASS_VERIFY plugin handler.

See documentation in openvpn-plugin.h and example
usage in plugin/defer/simple.c.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2969 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoDid:
james [Sat, 24 May 2008 19:17:12 +0000 (19:17 +0000)] 
Did:
  svn propset svn:ignore -F .svnignore .
on the modified .svnignore files.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2967 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoModified .svnignore to only ignore files generated
james [Sat, 24 May 2008 19:05:59 +0000 (19:05 +0000)] 
Modified .svnignore to only ignore files generated
by the auto* tools and make.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2966 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoMoved branch into official BETA21 position.
james [Mon, 12 May 2008 20:31:43 +0000 (20:31 +0000)] 
Moved branch into official BETA21 position.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2959 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoMisc XGUI fixes.
james [Tue, 11 Mar 2008 06:03:12 +0000 (06:03 +0000)] 
Misc XGUI fixes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2836 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoSet tool defaults in pkitool.
james [Tue, 11 Mar 2008 05:58:39 +0000 (05:58 +0000)] 
Set tool defaults in pkitool.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2835 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFirst working version of XGUI inclusion.
james [Mon, 10 Mar 2008 10:02:20 +0000 (10:02 +0000)] 
First working version of XGUI inclusion.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2834 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded new OpenVPN icon and installer graphic.
james [Wed, 5 Mar 2008 01:48:30 +0000 (01:48 +0000)] 
Added new OpenVPN icon and installer graphic.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2783 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVersion 2.1_rc7a.
james [Mon, 18 Feb 2008 17:47:13 +0000 (17:47 +0000)] 
Version 2.1_rc7a.

Minor Windows build system changes:
* Fall back to prebuilt-binary if gcc is not available.
* Documentation changes in ./domake-win

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2760 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoClarified tcp-queue-limit man page entry
james [Sun, 17 Feb 2008 08:27:34 +0000 (08:27 +0000)] 
Clarified tcp-queue-limit man page entry
(Matti Linnanvuori).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2750 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoThe new function extract_x509_field_ssl tends to break
james [Sun, 17 Feb 2008 08:21:28 +0000 (08:21 +0000)] 
The new function extract_x509_field_ssl tends to break
in early versions of OpenSSL 0.9.6.  Now we will fall
back to the old function extract_x509_field for OpenSSL
0.9.6.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2749 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoCleanup IP address for persistence interfaces for tap and also using
james [Sun, 17 Feb 2008 07:05:49 +0000 (07:05 +0000)] 
Cleanup IP address for persistence interfaces for tap and also using
ifconfig, gentoo#209055 (Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2748 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoChanges to Windows build system: added GENOUT_PREBUILT mode
james [Fri, 1 Feb 2008 19:44:53 +0000 (19:44 +0000)] 
Changes to Windows build system:  added GENOUT_PREBUILT mode
to allow building an OpenVPN installer with a reduced set
of prerequisites.  See comments in domake-win for more info.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2711 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoChanges to Windows build system to make it easier to do
james [Fri, 1 Feb 2008 10:13:59 +0000 (10:13 +0000)] 
Changes to Windows build system to make it easier to do
partial builds, where only a subset of OpenVPN installer
components are built.  See ./domake-win comments.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2710 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVersion 2.1_rc7 v2.1_rc7
james [Wed, 30 Jan 2008 00:37:54 +0000 (00:37 +0000)] 
Version 2.1_rc7

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2702 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixup null interface on close, don't use ip addr flush
james [Sat, 26 Jan 2008 04:43:13 +0000 (04:43 +0000)] 
Fixup null interface on close, don't use ip addr flush
(Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2683 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded a few extra files that exist in the svn repo
james [Fri, 25 Jan 2008 01:01:51 +0000 (01:01 +0000)] 
Added a few extra files that exist in the svn repo
but were not being copied into the tarball by
make dist.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2674 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVERSION 2.1_rc6 v2.1_rc6
james [Thu, 24 Jan 2008 07:44:49 +0000 (07:44 +0000)] 
VERSION 2.1_rc6

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2666 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoFixed pkcs11_private_mode undef.
james [Thu, 24 Jan 2008 00:58:14 +0000 (00:58 +0000)] 
Fixed pkcs11_private_mode undef.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2664 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoVERSION 2.1_rc5 v2.1_rc5
james [Wed, 23 Jan 2008 21:08:22 +0000 (21:08 +0000)] 
VERSION 2.1_rc5

Updated ChangeLog.

Cleaned up start menu shortcuts in the Windows
installer.

Make sure that the uninstaller deletes SAMPCONF
files.

Minor uninstaller fixes to prevent files from
being left behind after uninstall.

Updated Windows notes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2660 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoForgot to put struct WIN2K_NDIS_MINIPORT_BLOCK outside
james [Wed, 23 Jan 2008 11:00:58 +0000 (11:00 +0000)] 
Forgot to put struct WIN2K_NDIS_MINIPORT_BLOCK outside
of #if ENABLE_NONADMIN block.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2658 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoSquashed Win2K TAP bug that was introduced by Vista fixes.
james [Wed, 23 Jan 2008 09:37:25 +0000 (09:37 +0000)] 
Squashed Win2K TAP bug that was introduced by Vista fixes.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2657 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIncremented TAP version number to 9.4.
james [Wed, 23 Jan 2008 05:03:57 +0000 (05:03 +0000)] 
Incremented TAP version number to 9.4.

Added SAMPCONF macros to settings.in and
openvpn.nsi to allow a default configuration
to be loaded by the installer.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2656 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoAdded --management-forget-disconnect option -- forget
james [Wed, 23 Jan 2008 00:19:51 +0000 (00:19 +0000)] 
Added --management-forget-disconnect option -- forget
passwords when management session disconnects (Alon Bar-Lev).

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2652 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoUpgraded TAP build scripts to use WDK 6001.17121
james [Tue, 22 Jan 2008 23:52:08 +0000 (23:52 +0000)] 
Upgraded TAP build scripts to use WDK 6001.17121
(Windows 2008 Server pre-RTM).

Fixed typo of DESC_SecPKCS11DLLs in openvpn.nsi.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2651 e7ae566f-a301-0410-adde-c780ea21d3b5

17 years agoIncremented version number to 2.1_rc4a.
james [Tue, 22 Jan 2008 22:08:35 +0000 (22:08 +0000)] 
Incremented version number to 2.1_rc4a.

Windows changes:

Incremented included OpenSSL version to openssl-0.9.7m.

Updated openssl.patch for openssl-0.9.7m and added some
brief usage comments to the head of the patch.

Added build-pkcs11-helper.sh for building the pkcs11-helper
library.

Integrated inclusion of pkcs11-helper into Windows build
system.

git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@2649 e7ae566f-a301-0410-adde-c780ea21d3b5