commit | 937228e030569bf25ceb379c9491426709792701 | [log] [tgz] |
---|---|---|
author | Teddy Reed <teddy@prosauce.org> | Mon Feb 22 23:23:47 2016 -0800 |
committer | Roger Meier <roger@apache.org> | Sat Feb 27 10:31:46 2016 +0100 |
tree | ff732adc473b4bce6ab5c142d2d2686f300e0138 | |
parent | 402f6419f94b905d7a924334868c48a8b22948c6 [diff] |
THRIFT-3667 C++: Add TLS SNI support to clients
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 @@ } } 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) {