James Yonan
f683eca1d7
Added SignalBlockerDefault to handle common usage case.
2015-03-19 13:58:31 -06:00
James Yonan
987867082c
Use C++11 std::thread (instead of boost::thread) if USE_STD_THREAD
...
if defined.
2015-03-19 13:56:38 -06:00
James Yonan
d1072035b3
Added openvpn/common/inotify.hpp.
...
Created initial method INotify::mask_to_string() to convert
an inotify mask to a human-readable string for debugging.
2015-02-10 15:58:58 -07:00
James Yonan
c8ffeea283
Added string::len_without_trailing_nulls method.
2015-02-10 15:57:42 -07:00
James Yonan
26b792436a
Added ScopedFD::reset() method.
2015-02-10 15:57:09 -07:00
James Yonan
58031408d7
ScopedFD::close() should not be virtual.
2015-02-10 15:56:49 -07:00
James Yonan
01a381ef44
Added nondigit_term bool to parse_number() to allow parsing
...
of numbers that are terminated by non-number chars. Previously
only '\0' could terminate a number.
2015-02-10 15:55:32 -07:00
James Yonan
2226a34850
In asiodispatch.hpp, added dispatcher for asio async_read
...
without argument: asio_dispatch_read_noarg().
2015-02-10 15:54:34 -07:00
James Yonan
90d98c8fac
class OptionList now inherits from RCCopyable.
2015-02-03 17:34:13 -07:00
James Yonan
d5f249b3a4
Added class RunContext for managing threads in a
...
multi-threaded server.
2015-02-01 01:48:18 -07:00
James Yonan
169612f842
Add virtual void post_close() method to ScopedFD so derived
...
classes can do post-close actions.
2015-01-24 20:07:36 -07:00
James Yonan
79b9deb2bc
Added SIGUSR1/SIGUSR2 to class ASIOSignals.
...
Also added register_signals_all() method.
2015-01-16 01:52:59 -07:00
James Yonan
69d0a9cefb
Added SetUserGroup class for downgrading UID/GID.
2015-01-14 23:50:40 -07:00
James Yonan
fbfc84f460
Refactored PThreadCond and added PThreadBarrier for cases
...
where all threads need to reach a known point before
executing some action.
2015-01-14 23:17:20 -07:00
James Yonan
8d61382731
Core version number updated to 3.0.3.
2015-01-14 12:12:34 -07:00
James Yonan
915d0220a4
Added methods for daemonization and redirecting stdout/stderr
...
to a log file.
2015-01-13 23:18:57 -07:00
James Yonan
e0910bf6c4
Added PolarSSL AuthCert support (server-side only).
2015-01-12 23:20:23 -07:00
James Yonan
e817a9dc0b
Added dump_hex methods.
2015-01-12 23:16:51 -07:00
James Yonan
9004e8cbea
Added PThreadCond, a wrapper for pthread conditions.
2015-01-12 18:39:32 -07:00
James Yonan
58de6a371d
Added class OptionList convenience method get_num()
...
with range checking.
2015-01-12 18:35:53 -07:00
James Yonan
9965704558
Added write_string() method to write a std::string to a file.
2015-01-12 18:34:10 -07:00
James Yonan
2f65d5b550
Added enum_dir() function to return filenames in a directory
...
as a vector of strings.
2015-01-08 15:18:55 -07:00
James Yonan
93ced6f8d9
Added string::root() function to return the
...
non-extension part of the filename.
2015-01-08 15:16:51 -07:00
James Yonan
d51c6c6dc4
Added render_hex_number() function to hexstr.hpp.
2015-01-08 15:16:11 -07:00
James Yonan
c2c7292a70
Updated copyright to 2015.
2015-01-06 12:56:21 -07:00
James Yonan
47236d5ab5
Updated OPENVPN_VERSION to "3.0.2".
2015-01-05 19:25:18 -07:00
James Yonan
0acb038808
Added class OptionList convenience methods get_default()
...
and get_num().
Also, get_optional() should return a std::string, not a
const std::string.
2014-12-29 21:54:23 -07:00
James Yonan
464690aa6b
Added class ServerPushList for keeping track of
...
push "..." directives on the server.
2014-12-29 21:51:08 -07:00
James Yonan
1789443603
Updated core version to 3.0.1.
2014-12-21 11:03:09 -07:00
James Yonan
ea29858135
Added Option::get_default method.
2014-12-13 21:20:29 -07:00
James Yonan
81a7f2ad75
In asiodispatch.hpp, added dispatcher for asio
...
async_accept with argument.
2014-12-13 21:19:18 -07:00
James Yonan
f5ff65562e
OptionList, Option:
...
* Make use of C++11 move semantics for optimization, especially
where std::vector<Option> is pushed onto OptionList.
* Fixed bug in Option::render() where arguments would be
printed without any delimiter if RENDER_BRACKET flag was
absent.
* Added parse_from_peer_info() method, for parsing peer info
string received from client.
2014-10-30 10:36:33 -06:00
James Yonan
758ac9daa0
Templatized UTF-8 methods such as Unicode::utf8_printable to
...
work on arbitrary string types (such as upcoming SafeString).
2014-10-30 10:18:30 -06:00
James Yonan
43f0a6a636
Added a more human-readable render_hex method: render_hex_pretty.
2014-10-25 22:25:11 -06:00
James Yonan
0c91391bae
Added C++11 array_size method that is constexpr so it can be used
...
for compile-time asserts.
Use C++11 static_assert and array_size to verify size consistency
of tables in openvpn/error/error.hpp.
2014-10-23 13:44:52 -06:00
James Yonan
5826910bbe
Refactored server-side client instance object (ServerProto::Session)
...
to use Link abstraction (openvpn/common/link.hpp) to link with
transport layer (and other layers such as routing and management
as development progresses).
2014-08-19 15:41:59 -06:00
James Yonan
1531189578
class BackRef is no longer used. Move it to unused directory.
2014-08-19 09:20:39 -06:00
James Yonan
ea406b83c8
Added flag OPENVPN_RC_USERDEF to allow for debug implementations
...
of intrusive_ptr_add_ref and intrusive_ptr_release.
2014-08-19 00:57:38 -06:00
James Yonan
170fc59508
Refer to abort() as std::abort().
2014-08-18 02:55:30 -06:00
James Yonan
516cd89a76
Added class SignalBlocker for selective blocking of posix signals.
2014-08-17 22:35:51 -06:00
James Yonan
4e39a533e9
Added new constant-time memory comparison function crypto::memneq
...
to replace memcmp_secure. crypto::memneq benefits from insights
gained during the development of crypto_memneq for the Linux kernel.
2014-08-17 22:09:12 -06:00
James Yonan
6e5e84d2d6
Added new function hash_combine_data.
2014-08-15 22:19:17 -06:00
James Yonan
03d74ed507
Annotate RC and RCCopyable methods with BOOST_NOEXCEPT
...
to play well with std::function small object optimization.
2014-08-15 22:05:25 -06:00
James Yonan
08fff1b640
For class String (RC-inheriting version of std::string), forgot
...
to make the inheritance of RC<thread_unsafe_refcount> public.
2014-08-14 11:24:07 -06:00
James Yonan
aeba511846
Added parse_port function.
2014-08-14 11:22:33 -06:00
James Yonan
03dd9aa766
Added write_binary method to file.hpp.
2014-08-11 18:02:21 -06:00
James Yonan
b3245b4590
Simplified class BackRef and added test code.
2014-08-10 20:59:21 -06:00
James Yonan
4b5cbc4cc6
Added AsioDispatchComposedConnect for dispatch/callback
...
to an Asio ComposedConnectHandler.
2014-08-10 17:17:11 -06:00
James Yonan
564dcdc2cf
Added C++11 move construction/assignment to CF::Wrap,
...
BufferAllocatedType, ScopedPtr, and ScopedFD.
2014-08-10 16:53:39 -06:00
James Yonan
2c6d972ad6
Added AGPL copyright/licensing language.
2014-07-20 21:22:06 -06:00