summaryrefslogtreecommitdiff
path: root/src/mongo/transport
diff options
context:
space:
mode:
authorAndrew Shuvalov <andrew.shuvalov@mongodb.com>2020-11-20 18:11:25 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-20 19:31:28 +0000
commitdee89c5e789b1ce136284d2b131cfdd9c08377c0 (patch)
tree9fec894fcb841600d1cac130dea5a0b0b8692029 /src/mongo/transport
parent997bfb9552e33f34bfcfb6d39e8851a412390c9f (diff)
downloadmongo-dee89c5e789b1ce136284d2b131cfdd9c08377c0.tar.gz
SERVER-52710: fix build when SSL is off
Diffstat (limited to 'src/mongo/transport')
-rw-r--r--src/mongo/transport/transport_layer_asio.cpp3
-rw-r--r--src/mongo/transport/transport_layer_manager.cpp1
2 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/transport/transport_layer_asio.cpp b/src/mongo/transport/transport_layer_asio.cpp
index 670ea496bc9..ea4c6c2dcf2 100644
--- a/src/mongo/transport/transport_layer_asio.cpp
+++ b/src/mongo/transport/transport_layer_asio.cpp
@@ -99,8 +99,9 @@ boost::optional<Status> maybeTcpFastOpenStatus;
MONGO_FAIL_POINT_DEFINE(transportLayerASIOasyncConnectTimesOut);
-
+#ifdef MONGO_CONFIG_SSL
SSLConnectionContext::~SSLConnectionContext() = default;
+#endif
class ASIOReactorTimer final : public ReactorTimer {
public:
diff --git a/src/mongo/transport/transport_layer_manager.cpp b/src/mongo/transport/transport_layer_manager.cpp
index fd386560a44..b3a183cebd6 100644
--- a/src/mongo/transport/transport_layer_manager.cpp
+++ b/src/mongo/transport/transport_layer_manager.cpp
@@ -45,7 +45,6 @@
#include "mongo/transport/service_executor_synchronous.h"
#include "mongo/transport/session.h"
#include "mongo/transport/transport_layer_asio.h"
-#include "mongo/util/net/ssl/context.hpp"
#include "mongo/util/net/ssl_types.h"
#include "mongo/util/time_support.h"