0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 04:02:15 +02:00
openvpn3/openvpn/crypto
James Yonan 691a641a43 Added i/o abstraction layer.
Created a lightweight abstraction layer so that another i/o
reactor can be dropped in place of asio.

The basic approach is to rename all references to asio::xxx
types to openvpn_io::xxx and then make openvpn_io a
preprocessor variable that points to the top-level namespace
of the i/o reactor implementation.

All of the source files that currently include <asio.hpp> now
include <openvpn/io/io.hpp> instead:

This gives us a lightweight abstraction layer that allows us
to define openvpn_io to be something other than asio.

Other changes:

* Inclusion of asio by scripts/build is now optional, and is
  enabled by passing ASIO=1 or ASIO_DIR=<dir>.

* Refactored openvpn/common/socktypes.hpp to no longer
  require asio.

* Refactored openvpn/log/logthread.hpp to no longer require
  asio.

* Added openvpn::get_hostname() method as alternative to
  calling asio directly.

* openvpn/openssl/util/init.hpp will now #error
  if USE_ASIO is undefined.

Signed-off-by: James Yonan <james@openvpn.net>
2017-03-30 15:48:14 -06:00
..
bs64_data_limit.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
cipher.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
crypto_aead.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
crypto_chm.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
cryptoalgs.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
cryptodc.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
cryptodcsel.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
decrypt_chm.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
digestapi.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
encrypt_chm.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
hashstr.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
ovpnhmac.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
packet_id.hpp Added i/o abstraction layer. 2017-03-30 15:48:14 -06:00
selftest.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00
static_key.hpp copyright: updated to 2017. 2017-03-18 13:11:09 -06:00