Drop the boost 1.7 related dependency
- There are few pieces in the code, that depends on boost
1.71 & 1.70 library.
- Now, that bmcweb is moving towards 1.73, we can safely remove
those dependencies.
Tested By:
- Compiled in all sdks & unittests passed.
Signed-off-by: Manojkiran Eda <manojkiran.eda@gmail.com>
Change-Id: I9ac6a002bf389afcad0ddb92f2e0205043ddb347
diff --git a/http/http_connection.h b/http/http_connection.h
index 1a8f6cd..5f4681f 100644
--- a/http/http_connection.h
+++ b/http/http_connection.h
@@ -1,6 +1,12 @@
#pragma once
#include "config.h"
+#include "http_response.h"
+#include "logging.h"
+#include "middleware_context.h"
+#include "timer_queue.h"
+#include "utility.h"
+
#include "http_utility.hpp"
#include <boost/algorithm/string.hpp>
@@ -9,23 +15,12 @@
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/ssl.hpp>
#include <boost/beast/core/flat_static_buffer.hpp>
-
-#include <atomic>
-#if BOOST_VERSION >= 107000
-#include <boost/beast/ssl/ssl_stream.hpp>
-#else
-#include <boost/beast/experimental/core/ssl_stream.hpp>
-#endif
-#include "http_response.h"
-#include "logging.h"
-#include "middleware_context.h"
-#include "timer_queue.h"
-#include "utility.h"
-
#include <boost/beast/http.hpp>
+#include <boost/beast/ssl/ssl_stream.hpp>
#include <boost/beast/websocket.hpp>
#include <ssl_key_handler.hpp>
+#include <atomic>
#include <chrono>
#include <vector>
diff --git a/http/http_request.h b/http/http_request.h
index 67cc944..0691465 100644
--- a/http/http_request.h
+++ b/http/http_request.h
@@ -7,13 +7,8 @@
#include <boost/asio/io_context.hpp>
#include <boost/beast/http.hpp>
-#include <boost/beast/websocket.hpp>
-
-#if BOOST_VERSION >= 107000
#include <boost/beast/ssl/ssl_stream.hpp>
-#else
-#include <boost/beast/experimental/core/ssl_stream.hpp>
-#endif
+#include <boost/beast/websocket.hpp>
namespace crow
{
diff --git a/http/http_server.h b/http/http_server.h
index 50e96c2..3287ed9 100644
--- a/http/http_server.h
+++ b/http/http_server.h
@@ -1,25 +1,19 @@
#pragma once
+#include "http_connection.h"
+#include "logging.h"
+#include "timer_queue.h"
+
#include <boost/asio/ip/address.hpp>
#include <boost/asio/ip/tcp.hpp>
#include <boost/asio/signal_set.hpp>
#include <boost/asio/ssl/context.hpp>
#include <boost/asio/steady_timer.hpp>
-
-#include <atomic>
-#if BOOST_VERSION >= 107000
#include <boost/beast/ssl/ssl_stream.hpp>
-#else
-#include <boost/beast/experimental/core/ssl_stream.hpp>
-#endif
-
-#include "http_connection.h"
-#include "logging.h"
-#include "timer_queue.h"
-
#include <boost/date_time/posix_time/posix_time.hpp>
#include <ssl_key_handler.hpp>
+#include <atomic>
#include <chrono>
#include <cstdint>
#include <filesystem>