diff options
author | Isabella Siu <isabella.siu@10gen.com> | 2019-01-04 16:04:27 -0500 |
---|---|---|
committer | Isabella Siu <isabella.siu@10gen.com> | 2019-01-09 11:10:11 -0500 |
commit | 0e237325a508f3c49eb6a19ea4a9dbb7c6053058 (patch) | |
tree | add0173dfb7aa76504b1d0cd18c251fcbfeb099f /src/mongo/transport/session_asio.h | |
parent | 5d0f13334445fca6e2c5bfc496b5d5b1cb7e0f8a (diff) | |
download | mongo-0e237325a508f3c49eb6a19ea4a9dbb7c6053058.tar.gz |
SERVER-38738 collapse all getSSLManager() to one implementation and remove mutex
Diffstat (limited to 'src/mongo/transport/session_asio.h')
-rw-r--r-- | src/mongo/transport/session_asio.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/transport/session_asio.h b/src/mongo/transport/session_asio.h index 19cdb42dfd4..b74b29af1d9 100644 --- a/src/mongo/transport/session_asio.h +++ b/src/mongo/transport/session_asio.h @@ -237,8 +237,7 @@ protected: return doHandshake().then([this, target] { _ranHandshake = true; - auto sslManager = getSSLManager(); - auto swPeerInfo = uassertStatusOK(sslManager->parseAndValidatePeerCertificate( + auto swPeerInfo = uassertStatusOK(getSSLManager()->parseAndValidatePeerCertificate( _sslSocket->native_handle(), target.host(), target)); if (swPeerInfo) { @@ -616,8 +615,7 @@ private: auto& sslPeerInfo = SSLPeerInfo::forSession(shared_from_this()); if (sslPeerInfo.subjectName.empty()) { - auto sslManager = getSSLManager(); - auto swPeerInfo = sslManager->parseAndValidatePeerCertificate( + auto swPeerInfo = getSSLManager()->parseAndValidatePeerCertificate( _sslSocket->native_handle(), "", _remote); // The value of swPeerInfo is a bit complicated: |