You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by ro...@apache.org on 2016/02/27 12:44:00 UTC

thrift git commit: THRIFT-3667 C++: Add TLS SNI support to clients

Repository: thrift
Updated Branches:
  refs/heads/master 402f6419f -> 937228e03


THRIFT-3667 C++: Add TLS SNI support to clients


Project: http://git-wip-us.apache.org/repos/asf/thrift/repo
Commit: http://git-wip-us.apache.org/repos/asf/thrift/commit/937228e0
Tree: http://git-wip-us.apache.org/repos/asf/thrift/tree/937228e0
Diff: http://git-wip-us.apache.org/repos/asf/thrift/diff/937228e0

Branch: refs/heads/master
Commit: 937228e030569bf25ceb379c9491426709792701
Parents: 402f641
Author: Teddy Reed <te...@prosauce.org>
Authored: Mon Feb 22 23:23:47 2016 -0800
Committer: Roger Meier <ro...@apache.org>
Committed: Sat Feb 27 10:31:46 2016 +0100

----------------------------------------------------------------------
 lib/cpp/src/thrift/transport/TSSLSocket.cpp | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/thrift/blob/937228e0/lib/cpp/src/thrift/transport/TSSLSocket.cpp
----------------------------------------------------------------------
diff --git a/lib/cpp/src/thrift/transport/TSSLSocket.cpp b/lib/cpp/src/thrift/transport/TSSLSocket.cpp
index c5bb1f6..bd13160 100644
--- a/lib/cpp/src/thrift/transport/TSSLSocket.cpp
+++ b/lib/cpp/src/thrift/transport/TSSLSocket.cpp
@@ -469,6 +469,8 @@ void TSSLSocket::checkHandshake() {
       }
     } while (rc == 2);
   } else {
+    // set the SNI hostname
+    SSL_set_tlsext_host_name(ssl_, getHost().c_str());
     do {
       rc = SSL_connect(ssl_);
       if (rc <= 0) {