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

20 Commits

Author SHA1 Message Date
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
4996c38ed4
Merge lastest changes from Core v3.7.2 2022-12-14 17:34:29 +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
James Yonan
ae4e358efd write_binary_unix(): added WRITE_BINARY_UNIX_EXISTING flag
Signed-off-by: James Yonan <james@openvpn.net>
2022-05-13 19:09:09 -06:00
James Yonan
026df465cf read_binary_unix_fast(): templatize filename argument to accept std::string or C string
Signed-off-by: James Yonan <james@openvpn.net>
2022-02-07 13:56:13 -07:00
James Yonan
9f8559f97b
read_binary_unix_fast: loop to fill buffer
Signed-off-by: James Yonan <james@openvpn.net>
2020-09-02 20:38:04 +02:00
James Yonan
75519e9e62
write_binary_unix: added more descriptive error messages
Signed-off-by: James Yonan <james@openvpn.net>
2020-09-02 20:38:02 +02:00
James Yonan
1692e1cd43
fileunix, stat, json: allow file read methods to obtain nanosecond-scale mod time
Signed-off-by: James Yonan <james@openvpn.net>
2020-08-19 18:52:44 +02:00
David Sommerseth
3fbe0a2701
Update copyrights
Signed-off-by: David Sommerseth <davids@openvpn.net>
2020-03-18 19:37:32 +01:00
Arne Schwabe
984c601090
Fix multiple instances of comparison of signed with unsigned 2020-01-15 23:08:30 +01:00
James Yonan
f15e566065 read_binary_unix_fast: should return an int (i.e. errno), not a bool
Signed-off-by: James Yonan <james@openvpn.net>
2019-09-06 22:24:56 -06:00
James Yonan
1eb9cd657c unix file utils: added mtime_ns parameter to write_binary_unix() and write_binary_atomic()
mtime_ns is nanoseconds-since-epoch.

Signed-off-by: James Yonan <james@openvpn.net>
2018-08-30 13:00:27 +03:00
James Yonan
6745799c93
fileunix: added read_binary_unix_fast()
Signed-off-by: James Yonan <james@openvpn.net>
2018-03-10 02:28:31 +08:00
James Yonan
5689c2d9c9
write_binary_unix(): added ConstBuffer variant
Signed-off-by: James Yonan <james@openvpn.net>
2018-03-10 02:28:31 +08:00
David Sommerseth
16b10559f2 [OVPN3-140] Update company names in copyrights
OpenVPN Technologies, Inc. change their name to OpenVPN Inc. during the
autumn of 2017.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2017-12-22 17:59:39 +08:00
David Sommerseth
6caca2c313 [OVPN3-140] Relicense back to AGPLv3
This is essentially a revert of commit 04b2a3c9b7 and commit
ef42e59e05.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2017-12-22 17:59:39 +08:00
James Yonan
1e855667a1 Use openvpn::strerror_str() instead of std::strerror().
std::strerror() doesn't claim to be thread-safe, so
add openvpn::strerror_str() which is thread-safe by
virtue of the fact that it backs to strerror_r().

Signed-off-by: James Yonan <james@openvpn.net>
2017-04-22 17:54:01 -06:00
James Yonan
b2cd82a5bf copyright: updated to 2017.
Signed-off-by: James Yonan <james@openvpn.net>
2017-03-18 13:11:09 -06:00
James Yonan
ef42e59e05 Switch from AGPLv3 to GPLv3 on recently added files.
Signed-off-by: James Yonan <james@openvpn.net>
2017-03-18 12:47:11 -06:00
James Yonan
ee91c99d40 library : added set of file read/write helper methods
optimized for unix (openvpn/common/fileunix.hpp).
2017-03-18 12:24:54 -06:00