diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-09-17 18:31:30 -0400 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-09-17 18:31:45 -0400 |
commit | 0780841a51470b33105ec2b0a7831531b82d0a8d (patch) | |
tree | f8911373b7b93144f6055b0378c482ed9f4fba2f /src/mongo/transport/session_asio.h | |
parent | 6e3c5ea176aadbd0475f8f87525b9f0fabd4bdc9 (diff) | |
download | mongo-0780841a51470b33105ec2b0a7831531b82d0a8d.tar.gz |
SERVER-36250 Add support for optionally logging specific negotiated TLS versions
Diffstat (limited to 'src/mongo/transport/session_asio.h')
-rw-r--r-- | src/mongo/transport/session_asio.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/transport/session_asio.h b/src/mongo/transport/session_asio.h index 00eab1d0ae0..8f382e0f441 100644 --- a/src/mongo/transport/session_asio.h +++ b/src/mongo/transport/session_asio.h @@ -237,7 +237,7 @@ protected: auto sslManager = getSSLManager(); auto swPeerInfo = uassertStatusOK(sslManager->parseAndValidatePeerCertificate( - _sslSocket->native_handle(), target.host())); + _sslSocket->native_handle(), target.host(), target)); if (swPeerInfo) { SSLPeerInfo::forSession(shared_from_this()) = std::move(*swPeerInfo); @@ -616,7 +616,7 @@ private: if (sslPeerInfo.subjectName.empty()) { auto sslManager = getSSLManager(); auto swPeerInfo = sslManager->parseAndValidatePeerCertificate( - _sslSocket->native_handle(), ""); + _sslSocket->native_handle(), "", _remote); // The value of swPeerInfo is a bit complicated: // |