diff options
author | Razvan Becheriu <razvan@isc.org> | 2023-12-14 19:16:52 +0100 |
---|---|---|
committer | Razvan Becheriu <razvan@isc.org> | 2024-03-05 08:50:05 +0100 |
commit | 1b070fe4b53be34d34bdbfe59ec22d65b27fa982 (patch) | |
tree | ff4fa433d4739afe2e9944b46cbab587afd302c5 /src/lib/asiolink/botan_tls.h | |
parent | [#3271] bump version in configure.ac to 2.5.7 (diff) | |
download | kea-1b070fe4b53be34d34bdbfe59ec22d65b27fa982.tar.xz kea-1b070fe4b53be34d34bdbfe59ec22d65b27fa982.zip |
[#3190] use smart pointer to capture IOService instance
Diffstat (limited to 'src/lib/asiolink/botan_tls.h')
-rw-r--r-- | src/lib/asiolink/botan_tls.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/lib/asiolink/botan_tls.h b/src/lib/asiolink/botan_tls.h index 0a9b3b16c6..df0ad33767 100644 --- a/src/lib/asiolink/botan_tls.h +++ b/src/lib/asiolink/botan_tls.h @@ -95,8 +95,9 @@ typedef 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()), role_(context->getRole()) { +TlsStreamBase(const IOServicePtr& io_service, TlsContextPtr context) + : StreamService(io_service), TlsStreamImpl(io_service->getInternalIOService()), + role_(context->getRole()) { } /// @brief Botan fake TLS stream. @@ -114,7 +115,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) { } |