summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrew Shuvalov <andrew.shuvalov@mongodb.com>2020-11-06 14:41:21 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-11-06 16:16:40 +0000
commite4754b382d56446682799f400318c02c98cf6ab0 (patch)
tree01ab6910cd311e0428ed96a5474198b4b89b737a /src
parent6508f5d6ad5d514f433b660f0da7f513625973be (diff)
downloadmongo-e4754b382d56446682799f400318c02c98cf6ab0.tar.gz
SERVER-51811: build fix, SSL code must be guarded
Diffstat (limited to 'src')
-rw-r--r--src/mongo/executor/network_interface_tl.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/executor/network_interface_tl.cpp b/src/mongo/executor/network_interface_tl.cpp
index d74e3bf9ce6..f50ae202bc5 100644
--- a/src/mongo/executor/network_interface_tl.cpp
+++ b/src/mongo/executor/network_interface_tl.cpp
@@ -33,6 +33,7 @@
#include "mongo/executor/network_interface_tl.h"
+#include "mongo/config.h"
#include "mongo/db/server_options.h"
#include "mongo/db/wire_version.h"
#include "mongo/executor/connection_pool_tl.h"
@@ -125,6 +126,8 @@ NetworkInterfaceTL::NetworkInterfaceTL(std::string instanceName,
}
std::shared_ptr<const transport::SSLConnectionContext> transientSSLContext;
+
+#ifdef MONGO_CONFIG_SSL
if (_connPoolOpts.transientSSLParams) {
// TODO: uncomment when changes for SERVER-51599 are submitted.
// auto statusOrContext = _tl->createTransientSSLContext(
@@ -133,6 +136,7 @@ NetworkInterfaceTL::NetworkInterfaceTL(std::string instanceName,
// transientSSLContext = std::make_shared<const transport::SSLConnectionContext>(
// std::move(statusOrContext.getValue()));
}
+#endif
_reactor = _tl->getReactor(transport::TransportLayer::kNewReactor);
auto typeFactory = std::make_unique<connection_pool_tl::TLTypeFactory>(