aboutsummaryrefslogtreecommitdiffstats
path: root/src/cli
diff options
context:
space:
mode:
authorNuno Goncalves <nunojpg@gmail.com>2019-10-15 13:30:11 +0200
committerNuno Goncalves <nunojpg@gmail.com>2019-10-15 13:48:07 +0200
commit68faf8db94816757f94a689aeeaa6c3ee81606bb (patch)
tree096b420b45c6122d3b8c2c5e46c7d5e863cdf369 /src/cli
parent1a6ad661ce64287ccbe26460ccc3aa4247d86ba8 (diff)
prefer std::shared_ptr to boost::shared_ptr
Diffstat (limited to 'src/cli')
-rw-r--r--src/cli/tls_http_server.cpp6
-rw-r--r--src/cli/tls_proxy.cpp6
2 files changed, 4 insertions, 8 deletions
diff --git a/src/cli/tls_http_server.cpp b/src/cli/tls_http_server.cpp
index ca07fba17..10d8648dd 100644
--- a/src/cli/tls_http_server.cpp
+++ b/src/cli/tls_http_server.cpp
@@ -20,8 +20,6 @@
#define _GLIBCXX_HAVE_GTHR_DEFAULT
#include <boost/asio.hpp>
#include <boost/bind.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
#include <botan/internal/os_utils.h>
#include <botan/tls_server.h>
@@ -169,12 +167,12 @@ class HTTP_Parser final
static const size_t READBUF_SIZE = 4096;
-class TLS_Asio_HTTP_Session final : public boost::enable_shared_from_this<TLS_Asio_HTTP_Session>,
+class TLS_Asio_HTTP_Session final : public std::enable_shared_from_this<TLS_Asio_HTTP_Session>,
public Botan::TLS::Callbacks,
public HTTP_Parser::Callbacks
{
public:
- typedef boost::shared_ptr<TLS_Asio_HTTP_Session> pointer;
+ typedef std::shared_ptr<TLS_Asio_HTTP_Session> pointer;
static pointer create(
boost::asio::io_service& io,
diff --git a/src/cli/tls_proxy.cpp b/src/cli/tls_proxy.cpp
index b0e1b3686..8860458d7 100644
--- a/src/cli/tls_proxy.cpp
+++ b/src/cli/tls_proxy.cpp
@@ -19,8 +19,6 @@
#define _GLIBCXX_HAVE_GTHR_DEFAULT
#include <boost/asio.hpp>
#include <boost/bind.hpp>
-#include <boost/shared_ptr.hpp>
-#include <boost/enable_shared_from_this.hpp>
#include <botan/internal/os_utils.h>
#include <botan/tls_server.h>
@@ -90,13 +88,13 @@ class ServerStatus
std::atomic<size_t> m_clients_serviced;
};
-class tls_proxy_session final : public boost::enable_shared_from_this<tls_proxy_session>,
+class tls_proxy_session final : public std::enable_shared_from_this<tls_proxy_session>,
public Botan::TLS::Callbacks
{
public:
enum { readbuf_size = 17 * 1024 };
- typedef boost::shared_ptr<tls_proxy_session> pointer;
+ typedef std::shared_ptr<tls_proxy_session> pointer;
static pointer create(
boost::asio::io_service& io,