diff options
author | Andrew Shuvalov <andrew.shuvalov@mongodb.com> | 2020-11-04 03:47:34 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-05 22:45:59 +0000 |
commit | eb98e34176e5964d883d57e1b9c0cb196ae49c64 (patch) | |
tree | 1bf6053a2bd28ec44212762e5809e38292c51b1d /src/mongo/executor/connection_pool_tl.h | |
parent | 181fe6f7b1d0f092e8b7e196671fec2c2f45d671 (diff) | |
download | mongo-eb98e34176e5964d883d57e1b9c0cb196ae49c64.tar.gz |
SERVER-51811: No-op wiring of transient SSL params in related methods
Diffstat (limited to 'src/mongo/executor/connection_pool_tl.h')
-rw-r--r-- | src/mongo/executor/connection_pool_tl.h | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/src/mongo/executor/connection_pool_tl.h b/src/mongo/executor/connection_pool_tl.h index a1338c98b86..a147071f54d 100644 --- a/src/mongo/executor/connection_pool_tl.h +++ b/src/mongo/executor/connection_pool_tl.h @@ -134,15 +134,16 @@ private: class TLConnection final : public ConnectionPool::ConnectionInterface, public TLTypeFactory::Type { public: - TLConnection(const std::shared_ptr<TLTypeFactory>& factory, - transport::ReactorHandle reactor, - ServiceContext* serviceContext, - HostAndPort peer, - transport::ConnectSSLMode sslMode, - size_t generation, - NetworkConnectionHook* onConnectHook, - bool skipAuth, - std::shared_ptr<transport::SSLConnectionContext> sslContextOverride = nullptr) + TLConnection( + const std::shared_ptr<TLTypeFactory>& factory, + transport::ReactorHandle reactor, + ServiceContext* serviceContext, + HostAndPort peer, + transport::ConnectSSLMode sslMode, + size_t generation, + NetworkConnectionHook* onConnectHook, + bool skipAuth, + std::shared_ptr<const transport::SSLConnectionContext> transientSSLContext = nullptr) : ConnectionInterface(generation), TLTypeFactory::Type(factory), _reactor(reactor), @@ -152,7 +153,7 @@ public: _peer(std::move(peer)), _sslMode(sslMode), _onConnectHook(onConnectHook), - _sslContextOverride(sslContextOverride) {} + _transientSSLContext(transientSSLContext) {} ~TLConnection() { // Release must be the first expression of this dtor release(); @@ -190,7 +191,8 @@ private: HostAndPort _peer; transport::ConnectSSLMode _sslMode; NetworkConnectionHook* const _onConnectHook; - std::shared_ptr<transport::SSLConnectionContext> _sslContextOverride; + // SSL context to use intead of the default one for this pool. + std::shared_ptr<const transport::SSLConnectionContext> _transientSSLContext; AsyncDBClient::Handle _client; }; |