summaryrefslogtreecommitdiffstats
path: root/src/lib/asiolink/openssl_tls.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/asiolink/openssl_tls.h')
-rw-r--r--src/lib/asiolink/openssl_tls.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/asiolink/openssl_tls.h b/src/lib/asiolink/openssl_tls.h
index a558fd1044..957d9e5ad2 100644
--- a/src/lib/asiolink/openssl_tls.h
+++ b/src/lib/asiolink/openssl_tls.h
@@ -117,9 +117,9 @@ typedef boost::asio::ssl::stream<boost::asio::ip::tcp::socket> TlsStreamImpl;
/// @note The caller must not provide a null pointer to the TLS context.
template <typename Callback, typename TlsStreamImpl>
TlsStreamBase<Callback, TlsStreamImpl>::
-TlsStreamBase(IOService& service, TlsContextPtr context)
- : TlsStreamImpl(service.getInternalIOService(), context->getContext()),
- role_(context->getRole()) {
+TlsStreamBase(const IOServicePtr& io_service, TlsContextPtr context)
+ : StreamService(io_service), TlsStreamImpl(io_service->getInternalIOService(),
+ context->getContext()), role_(context->getRole()) {
}
/// @brief OpenSSL TLS stream.
@@ -137,7 +137,7 @@ public:
/// @param service I/O Service object used to manage the stream.
/// @param context Pointer to the TLS context.
/// @note The caller must not provide a null pointer to the TLS context.
- TlsStream(IOService& service, TlsContextPtr context)
+ TlsStream(const IOServicePtr& service, TlsContextPtr context)
: Base(service, context) {
}