James Yonan
51f6a2576a
Our use of the C++14 "generalized lambda capture" feature
...
requires that we build Android with -std=c++1y.
2015-06-28 01:52:12 -06:00
James Yonan
73151545f1
Fixed regression in openvpn/transport/protocol.hpp where
...
trying to parse "adaptive" as a protocol name would throw
an exception. The correct behavior is to return a
default-initialized Protocol object.
2015-06-28 01:49:29 -06:00
James Yonan
c9930250d9
Forgot space between "Bad Request" in HTTP status strings.
2015-06-28 00:33:16 -06:00
James Yonan
256c07ff28
Added new source file openvpn/http/urlencode.hpp to deal with
...
URL validation, encoding, and decoding.
2015-06-27 16:36:20 -06:00
James Yonan
0ec1bf62ba
Perform additional size-based sanitization on creds
...
before passing to ManClientInstanceSend::auth_request()
2015-06-27 16:34:41 -06:00
James Yonan
9e50e8048a
Added new methods to ManClientInstanceSend API: describe_user()
...
and disconnect_user().
2015-06-27 16:32:19 -06:00
James Yonan
88d171d197
AuthCreds changes: added defined() and is_valid() methods.
2015-06-27 16:31:20 -06:00
James Yonan
bc6cfa2b20
Added a couple methods in AuthCert:
...
cn_defined() : return true if CN is defined
normalize_cn() : remove trailing "_AUTOLOGIN" from AS certs
2015-06-27 16:28:37 -06:00
James Yonan
9e2b2f72aa
In rc.hpp, don't include notify release code unless
...
OPENVPN_RC_NOTIFY is defined.
2015-06-27 16:26:17 -06:00
James Yonan
6218afd80d
Added 400 Bad Request HTTP status code.
2015-06-27 16:25:24 -06:00
James Yonan
1acc33feaf
Obsoleted asiodispatch in favor of C++11 lambdas.
2015-06-25 13:59:12 -06:00
James Yonan
df17015569
Added Ptr typedefs to some classes that are missing them.
2015-06-25 01:56:04 -06:00
James Yonan
9c9addf75f
Minor formatting change to asiodispatch.hpp.
2015-06-25 01:32:10 -06:00
James Yonan
4add0c9bdc
Added a high-performance, general-purpose functor type
...
with move-only semantics.
2015-06-24 16:25:30 -06:00
James Yonan
062391463c
In options parser, add support for "remote" and "listen"
...
directives to refer to unix domain sockets.
2015-06-24 16:23:07 -06:00
James Yonan
8c4c7fb460
Made protocol type a template parameter to TCPTransport::Link,
...
so we can work with protocols other than TCP such as unix domain
sockets.
2015-06-24 16:20:06 -06:00
James Yonan
04637e486a
Started process of switching over from asiodispatch
...
to C++11 lambdas.
2015-06-24 16:16:57 -06:00
James Yonan
5bfa1fc310
Added "DCO" to OpenVPNClient::platform() string when a DCO
...
provider is enabled.
2015-06-18 14:37:12 -06:00
James Yonan
00ff2d0ad2
Throw an options error if DCO flag is enabled in API but no
...
DCO provider is present.
2015-06-18 13:57:36 -06:00
James Yonan
66f79ae817
Increased core version to 3.0.5 after revamp of replay
...
detection code.
2015-06-18 13:45:20 -06:00
James Yonan
a429b79fcd
tun-mtu directive will now influence buffer-sizing.
...
This is useful for tun-mtu values higher than 1500.
2015-06-18 13:19:26 -06:00
James Yonan
0bac5d8990
Core: revamped packet ID code to use a much larger window size,
...
allowing backtracks of up to 2048 (previous limit was 64).
In addition, we now maintain the packet ID window as a bit
array (previously a byte array was used).
2015-06-18 01:55:52 -06:00
James Yonan
df108086cb
Updated OpenSSL to 1.0.2c.
2015-06-17 13:24:18 -06:00
James Yonan
496e797a21
Added client hooks for DCO (Data Channel offload).
...
Updated tun implementation on Linux.
2015-06-17 01:48:33 -06:00
James Yonan
d2ddc82bca
Move errinfo() method out of exception.hpp and into its own
...
file, so that exception.hpp doesn't have to depend on Asio
headers.
2015-06-16 22:39:28 -06:00
James Yonan
b9844280e0
Minor gitignore mod.
2015-06-11 12:32:42 -06:00
James Yonan
a6c611651c
Added string::is_multiline() method.
2015-06-11 12:14:24 -06:00
James Yonan
c4a9cea3e1
Updated Windows client for VS 2015.
2015-06-09 11:21:41 -06:00
James Yonan
ee381e73f1
Incremented core version to 3.0.4.
2015-06-07 00:53:26 -06:00
James Yonan
142bcb0c44
OpenVPNClient::platform() method now returns
...
core build timestamp.
2015-06-07 00:52:02 -06:00
James Yonan
d0b9a2421a
Added mssfix-ctrl directive to set control channel
...
message size, range=[256,65535], default=1250.
2015-06-06 21:52:12 -06:00
James Yonan
1563dca02f
Added Asio to deps/lib-versions.
...
Removed Snappy dependency as ovpn3 clients now
standardize on LZ4 (with LZO-asym fallback).
2015-06-06 13:29:30 -06:00
James Yonan
c6a21c827b
Boost dependency elimination -- final removal of Boost
...
dependency. Asio is now included as a standalone,
header-only dependency.
2015-06-06 10:59:18 -06:00
James Yonan
d466fb6cce
Boost dependency elimination -- removed BOOST_DISABLE_ASSERTS
2015-06-05 00:47:54 -06:00
James Yonan
23d55e6f5c
Boost dependency elimination -- forgot to remove boost
...
reference in comment from openvpn/random/mtrand.hpp.
2015-06-05 00:46:30 -06:00
James Yonan
61972d2d40
Boost dependency elimination -- removed dependency on
...
boost::intrusive_ptr.
2015-06-05 00:16:07 -06:00
James Yonan
6cd32888fe
Boost dependency elimination -- removed include of
...
<boost/detail/endian.hpp>
2015-06-04 22:15:03 -06:00
James Yonan
b28fe08e09
Boost dependency elimination -- removed references to
...
<boost/functional/hash.hpp> in favor of std::hash.
2015-06-04 21:31:01 -06:00
James Yonan
8d9e1e2e41
Deleted some obsolete server files.
2015-06-04 21:06:07 -06:00
James Yonan
a00ed28204
Boost dependency elimination -- renamed boostrand.hpp to
...
mtrand.hpp and use std::random_device and std::mt19937.
2015-06-04 20:29:02 -06:00
James Yonan
88518335c4
Boost dependency elimination -- change boost::algorithm
...
usage (for string algorithms) to use methods of our own
implementation in openvpn/common/string.hpp.
2015-06-04 19:22:59 -06:00
James Yonan
ba957e45cc
In class RCWeak, added release notification callables.
2015-06-04 13:55:37 -06:00
James Yonan
597c2837f4
In class Option, change storage class of "bool touched_" to
...
mutable so we can set it without having to resort to const_cast.
2015-06-03 23:50:34 -06:00
James Yonan
da5927761c
In split.hpp, use std::move where possible.
2015-06-03 23:48:36 -06:00
James Yonan
87a2a684ce
Allow callers of split_host_port() to get the actual
...
integer port number.
2015-06-03 23:46:11 -06:00
James Yonan
84a93b7eb1
HTTP proxy client can now skip extraneous HTML content
...
before the proxy session starts.
2015-06-03 21:50:28 -06:00
James Yonan
a4759c5119
In bufstr.hpp, added buf_alloc_from_string() methods.
2015-06-03 20:36:57 -06:00
James Yonan
9b753715df
Added bufclamp.hpp, a debugging tool that clamps the size
...
of network buffers on stream-based protocols.
2015-06-03 20:36:19 -06:00
James Yonan
94260d47c2
In rc.hpp, add debugging mode enabled by OPENVPN_RC_DEBUG that
...
will log info about objects being managed.
2015-06-01 23:35:03 -06:00
James Yonan
803b91724b
In asiodispatch.hpp, added class AsioDispatchResolveArg.
2015-06-01 23:31:36 -06:00