diff options
author | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-01-30 10:52:20 -0500 |
---|---|---|
committer | Mark Benvenuto <mark.benvenuto@mongodb.com> | 2018-01-30 10:52:20 -0500 |
commit | effcc6e911190093d0005aa76f7c0db4e8697c18 (patch) | |
tree | c970df9515eca501a2d6d41b9438cdb9bb5befb8 /src/mongo/util/net/sock.cpp | |
parent | 1eb8f7320c73f7c5826c27cd33e319431c65994d (diff) | |
download | mongo-effcc6e911190093d0005aa76f7c0db4e8697c18.tar.gz |
SERVER-32750 Introduce SSLConnectionInterface for SSLConnection and refactor
Diffstat (limited to 'src/mongo/util/net/sock.cpp')
-rw-r--r-- | src/mongo/util/net/sock.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/mongo/util/net/sock.cpp b/src/mongo/util/net/sock.cpp index 30e17d83e5f..5be8daf6554 100644 --- a/src/mongo/util/net/sock.cpp +++ b/src/mongo/util/net/sock.cpp @@ -415,14 +415,7 @@ std::string Socket::getSNIServerName() const { if (!_sslConnection) return ""; - if (!_sslConnection->ssl) - return ""; - - const char* name = SSL_get_servername(_sslConnection->ssl, TLSEXT_NAMETYPE_host_name); - if (!name) - return ""; - - return name; + return _sslConnection->getSNIServerName(); } #endif |