diff --git a/src/util/requests/impl/StreamData.hpp b/src/util/requests/impl/StreamData.hpp index a976871c..e3d040c8 100644 --- a/src/util/requests/impl/StreamData.hpp +++ b/src/util/requests/impl/StreamData.hpp @@ -78,8 +78,8 @@ private: } }; -using SslTcpStreamData = SslStreamData>; +using SslTcpStreamData = SslStreamData>; using SslWsStreamData = - SslStreamData>>; + SslStreamData>>; } // namespace util::requests::impl diff --git a/src/util/requests/impl/WsConnectionImpl.hpp b/src/util/requests/impl/WsConnectionImpl.hpp index 341c118d..14bcee47 100644 --- a/src/util/requests/impl/WsConnectionImpl.hpp +++ b/src/util/requests/impl/WsConnectionImpl.hpp @@ -124,6 +124,6 @@ public: using PlainWsConnection = WsConnectionImpl>; using SslWsConnection = - WsConnectionImpl>>; + WsConnectionImpl>>; } // namespace util::requests::impl diff --git a/src/web/SslHttpSession.hpp b/src/web/SslHttpSession.hpp index 41a6da20..d06dcab1 100644 --- a/src/web/SslHttpSession.hpp +++ b/src/web/SslHttpSession.hpp @@ -61,7 +61,7 @@ using tcp = boost::asio::ip::tcp; template class SslHttpSession : public impl::HttpBase, public std::enable_shared_from_this> { - boost::beast::ssl_stream stream_; + boost::asio::ssl::stream stream_; std::reference_wrapper tagFactory_; std::uint32_t maxWsSendingQueueSize_; @@ -113,7 +113,7 @@ public: ~SslHttpSession() override = default; /** @return The SSL stream. */ - boost::beast::ssl_stream& + boost::asio::ssl::stream& stream() { return stream_; diff --git a/src/web/SslWsSession.hpp b/src/web/SslWsSession.hpp index d5b317db..c58e89f8 100644 --- a/src/web/SslWsSession.hpp +++ b/src/web/SslWsSession.hpp @@ -51,7 +51,7 @@ namespace web { */ template class SslWsSession : public impl::WsBase { - using StreamType = boost::beast::websocket::stream>; + using StreamType = boost::beast::websocket::stream>; StreamType ws_; public: @@ -68,7 +68,7 @@ public: * @param maxWsSendingQueueSize The maximum size of the sending queue for websocket */ explicit SslWsSession( - boost::beast::ssl_stream&& stream, + boost::asio::ssl::stream&& stream, std::string ip, std::reference_wrapper tagFactory, std::reference_wrapper dosGuard, @@ -107,7 +107,7 @@ template class SslWsUpgrader : public std::enable_shared_from_this> { using std::enable_shared_from_this>::shared_from_this; - boost::beast::ssl_stream https_; + boost::asio::ssl::stream https_; boost::optional> parser_; boost::beast::flat_buffer buffer_; std::string ip_; @@ -133,7 +133,7 @@ public: * @param maxWsSendingQueueSize The maximum size of the sending queue for websocket */ SslWsUpgrader( - boost::beast::ssl_stream stream, + boost::asio::ssl::stream stream, std::string ip, std::reference_wrapper tagFactory, std::reference_wrapper dosGuard, diff --git a/tests/common/util/TestHttpClient.cpp b/tests/common/util/TestHttpClient.cpp index c9d6e611..74ff9cd4 100644 --- a/tests/common/util/TestHttpClient.cpp +++ b/tests/common/util/TestHttpClient.cpp @@ -148,7 +148,7 @@ HttpsSyncClient::syncPost(std::string const& host, std::string const& port, std: ctx.set_verify_mode(ssl::verify_none); tcp::resolver resolver(ioc); - boost::beast::ssl_stream stream(ioc, ctx); + boost::asio::ssl::stream stream(ioc, ctx); // We can't fix this so have to ignore #pragma GCC diagnostic push diff --git a/tests/common/util/TestWebSocketClient.hpp b/tests/common/util/TestWebSocketClient.hpp index 726574de..81a6e10b 100644 --- a/tests/common/util/TestWebSocketClient.hpp +++ b/tests/common/util/TestWebSocketClient.hpp @@ -80,7 +80,7 @@ public: class WebServerSslSyncClient { boost::asio::io_context ioc_; - std::optional>> ws_; + std::optional>> ws_; public: void