0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
Commit Graph

36 Commits

Author SHA1 Message Date
Heiko Hund
8c8e96e138 streamline overriding virtual function syntax
In the code base three different syntaxes for overriding virtual member
functions could be found:

  1) virtual ... override
  2) virtual ...
  3) ... override

This converts all of them to the third syntax, as recommended by the ISO
C++ core guidelines in C.128

Signed-off-by: Heiko Hund <heiko@openvpn.net>
2024-08-13 02:01:24 +02:00
Leonard Ossa
3646265d15 Refactor nested namespace to C++17 style
Signed-off-by: Leonard Ossa <leonard.ossa@openvpn.com>
2024-07-03 10:20:11 +00:00
Frank Lichtenheld
cb589b70f0 Remove support for pre-Vista Windows versions
We do not care about them anymore. So remove all
the support which is untested anyway.

Signed-off-by: Frank Lichtenheld <frank@lichtenheld.com>
2023-04-20 17:44:14 +02:00
David Sommerseth
dde1574596
Reformatting source code to new coding style
This is the result after running 'clang-format -i' on all C++ files and
headers, with the defined formatting rules in .clang-format.

Only the openvpn/common/unicode-impl.hpp has been excluded, as that is
mostly a copy of an external project.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2023-01-18 19:24:15 +01:00
David Sommerseth
8c94a8f774
copyright: Update to 2022
Signed-off-by: David Sommerseth <davids@openvpn.net>
2022-09-29 12:00:26 +02:00
David Sommerseth
3fbe0a2701
Update copyrights
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-18 19:37:32 +01:00
Lev Stipakov
a4d9989d81
Update license on files moved from common
Signed-off-by: Lev Stipakov <lev@openvpn.net>
2020-01-09 12:24:20 +02:00
James Yonan
ced729b67f
Make lambda functions mutable that benefit from using std::move() on closure vars
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:58 +02:00
James Yonan
be378a8579
Added i/o abstraction layer.
Created a lightweight abstraction layer so that another i/o
reactor can be dropped in place of asio.

This commit includes:

* Added ASIO=1 to many "go" scripts that require asio
* Renamed "asio::" to "openvpn_io::".

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:58 +02:00
James Yonan
a33bfb08ff
copyright: updated to 2017
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:58 +02:00
James Yonan
b15978552c
license : this branch (common) is proprietary, so remove all GPL headers.
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:57 +02:00
James Yonan
4d4af4255e
copyright : updated to 2016 2020-01-09 12:22:57 +02:00
James Yonan
0b386531ba
Factored out HTTP Server acceptor classes into openvpn/acceptor. 2020-01-09 12:22:57 +02:00
James Yonan
267dcad489
WS::Server, Acceptor::TCP: added bind/close logging when OPENVPN_DEBUG_ACCEPT is defined
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:57 +02:00
James Yonan
0e03f4b21b
Acceptor::TCP: don't set reuseport flag by default on listener socket
Previously, all listener sockets were configured with both
reuseaddr and reuseport.  reuseaddr is reasonable to use as
a default, but reuseport should only be used when different
threads are listening on the same local port/address for
load-balancing purposes.

This patch adds two new socket option flags DISABLE_REUSE_ADDR
and REUSE_PORT, to provide finer-grained control over
these options.

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:56 +02:00
James Yonan
146b143ba1
Make lambda functions mutable that benefit from using std::move() on closure vars
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:56 +02:00
James Yonan
ff207adf05
Added i/o abstraction layer.
Created a lightweight abstraction layer so that another i/o
reactor can be dropped in place of asio.

This commit includes:

* Added ASIO=1 to many "go" scripts that require asio
* Renamed "asio::" to "openvpn_io::".

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:56 +02:00
James Yonan
f89b6984c1
copyright: updated to 2017
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:56 +02:00
James Yonan
160c4f667a
license : this branch (common) is proprietary, so remove all GPL headers.
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:55 +02:00
James Yonan
20a160b723
copyright : updated to 2016 2020-01-09 12:22:55 +02:00
James Yonan
a23ebb0654
Factored out HTTP Server acceptor classes into openvpn/acceptor. 2020-01-09 12:22:55 +02:00
James Yonan
bde3a3ec01
Added i/o abstraction layer.
Created a lightweight abstraction layer so that another i/o
reactor can be dropped in place of asio.

This commit includes:

* Added ASIO=1 to many "go" scripts that require asio
* Renamed "asio::" to "openvpn_io::".

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:55 +02:00
James Yonan
05f6f01772
copyright: updated to 2017
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:55 +02:00
James Yonan
e316c8d82d
license : this branch (common) is proprietary, so remove all GPL headers.
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:54 +02:00
James Yonan
aed8b6c194
copyright : updated to 2016 2020-01-09 12:22:54 +02:00
James Yonan
e8aeff0607
Fixed issue in openvpn/acceptor/namedpipe.hpp when building on pre-Vista Windows: the PIPE_REJECT_REMOTE_CLIENTS flag to CreateNamedPipeA isn't recognized by pre-Vista Windows, so #ifdef out on those platforms. 2020-01-09 12:22:54 +02:00
James Yonan
780fc414c8
Minor fix to namedpipe.hpp: added missing include. 2020-01-09 12:22:54 +02:00
James Yonan
2b0ff516a2
Factored out HTTP Server acceptor classes into openvpn/acceptor. 2020-01-09 12:22:53 +02:00
James Yonan
713d1c9ffc
HTTP: added Alt Routing support to HTTP client/server
Alt Routing allows services on meshed PG nodes to communicate
with services on other nodes via the secure mesh, and without
requiring SSL.

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:53 +02:00
James Yonan
fd5eb53e18
Added i/o abstraction layer.
Created a lightweight abstraction layer so that another i/o
reactor can be dropped in place of asio.

This commit includes:

* Added ASIO=1 to many "go" scripts that require asio
* Renamed "asio::" to "openvpn_io::".

Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:53 +02:00
James Yonan
f914b19b5a
Moved asio files from openvpn/common to openvpn/asio
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:53 +02:00
James Yonan
6a005cd487
copyright: updated to 2017
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:52 +02:00
James Yonan
ac4550b413
license : this branch (common) is proprietary, so remove all GPL headers.
Signed-off-by: James Yonan <james@openvpn.net>
2020-01-09 12:22:52 +02:00
James Yonan
4983ec3e03
copyright : updated to 2016 2020-01-09 12:22:52 +02:00
James Yonan
6e3857adc5
ListenerBase : now inherits from preprocessor var OPENVPN_ACCEPTOR_LISTENER_BASE_RC (which may be virtual) and which defaults to non-virtual RC<thread_unsafe_refcount>
This is done for OMI server-side, to allow the OMI object to
be both a socket listener and runcontext client.
2020-01-09 12:22:52 +02:00
James Yonan
3f8b88e40a
Factored out HTTP Server acceptor classes into openvpn/acceptor. 2020-01-09 12:22:46 +02:00