aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorHannes Rantzsch <[email protected]>2019-04-23 10:26:37 +0200
committerHannes Rantzsch <[email protected]>2019-04-23 10:45:39 +0200
commit7cd6f06f1678f51ba21a670bc1a5c76356b223c5 (patch)
treee06806af01e5fa065f297cf55b57c095111f28ee /src
parentcd10101440fbc45cf11e51cfe21bd0a7a9a25e9e (diff)
use class instead of struct
Diffstat (limited to 'src')
-rw-r--r--src/lib/tls/asio/asio_async_base.h3
-rw-r--r--src/lib/tls/asio/asio_async_handshake_op.h3
-rw-r--r--src/lib/tls/asio/asio_async_read_op.h3
-rw-r--r--src/lib/tls/asio/asio_async_write_op.h3
-rw-r--r--src/lib/tls/asio/asio_stream_core.h3
5 files changed, 10 insertions, 5 deletions
diff --git a/src/lib/tls/asio/asio_async_base.h b/src/lib/tls/asio/asio_async_base.h
index 9e559f249..6585ded55 100644
--- a/src/lib/tls/asio/asio_async_base.h
+++ b/src/lib/tls/asio/asio_async_base.h
@@ -59,8 +59,9 @@ namespace TLS {
* \tparam Allocator Type of the allocator to be used
*/
template <class Handler, class Executor1, class Allocator>
-struct AsyncBase : boost::asio::coroutine
+class AsyncBase : public boost::asio::coroutine
{
+ public:
using allocator_type = boost::asio::associated_allocator_t<Handler, Allocator>;
using executor_type = boost::asio::associated_executor_t<Handler, Executor1>;
diff --git a/src/lib/tls/asio/asio_async_handshake_op.h b/src/lib/tls/asio/asio_async_handshake_op.h
index 92a9de7da..6bb895ff2 100644
--- a/src/lib/tls/asio/asio_async_handshake_op.h
+++ b/src/lib/tls/asio/asio_async_handshake_op.h
@@ -26,8 +26,9 @@ namespace Botan {
namespace TLS {
template <class Handler, class Stream, class Allocator = std::allocator<void>>
-struct AsyncHandshakeOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
+class AsyncHandshakeOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
{
+ public:
/**
* Construct and invoke an AsyncHandshakeOperation.
*
diff --git a/src/lib/tls/asio/asio_async_read_op.h b/src/lib/tls/asio/asio_async_read_op.h
index 5457a73ac..52c63cea5 100644
--- a/src/lib/tls/asio/asio_async_read_op.h
+++ b/src/lib/tls/asio/asio_async_read_op.h
@@ -26,8 +26,9 @@ namespace Botan {
namespace TLS {
template <class Handler, class Stream, class MutableBufferSequence, class Allocator = std::allocator<void>>
-struct AsyncReadOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
+class AsyncReadOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
{
+ public:
/**
* Construct and invoke an AsyncWriteOperation.
*
diff --git a/src/lib/tls/asio/asio_async_write_op.h b/src/lib/tls/asio/asio_async_write_op.h
index df34958e0..db347e5c5 100644
--- a/src/lib/tls/asio/asio_async_write_op.h
+++ b/src/lib/tls/asio/asio_async_write_op.h
@@ -25,8 +25,9 @@ namespace Botan {
namespace TLS {
template <typename Handler, class Stream, class Allocator = std::allocator<void>>
-struct AsyncWriteOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
+class AsyncWriteOperation : public AsyncBase<Handler, typename Stream::executor_type, Allocator>
{
+ public:
/**
* Construct and invoke an AsyncWriteOperation.
*
diff --git a/src/lib/tls/asio/asio_stream_core.h b/src/lib/tls/asio/asio_stream_core.h
index 00369ad86..dbf95c37a 100644
--- a/src/lib/tls/asio/asio_stream_core.h
+++ b/src/lib/tls/asio/asio_stream_core.h
@@ -28,8 +28,9 @@ namespace TLS {
/**
* Contains the buffers for reading/sending, and the needed botan callbacks
*/
-struct StreamCore : public Botan::TLS::Callbacks
+class StreamCore : public Botan::TLS::Callbacks
{
+ public:
StreamCore()
: m_input_buffer_space(MAX_CIPHERTEXT_SIZE, '\0'),
input_buffer(m_input_buffer_space.data(), m_input_buffer_space.size()) {}