trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jpe...@apache.org
Subject git commit: Remove unused SSLNetVConnection::sniServername
Date Sun, 05 Oct 2014 05:41:04 GMT
Repository: trafficserver
Updated Branches:
  refs/heads/master bcfb391f2 -> 5cf8baf79


Remove unused SSLNetVConnection::sniServername


Project: http://git-wip-us.apache.org/repos/asf/trafficserver/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafficserver/commit/5cf8baf7
Tree: http://git-wip-us.apache.org/repos/asf/trafficserver/tree/5cf8baf7
Diff: http://git-wip-us.apache.org/repos/asf/trafficserver/diff/5cf8baf7

Branch: refs/heads/master
Commit: 5cf8baf796627e461400c0d24c26c0dd4c8e2191
Parents: bcfb391
Author: James Peach <jpeach@apache.org>
Authored: Sat Oct 4 22:39:27 2014 -0700
Committer: James Peach <jpeach@apache.org>
Committed: Sat Oct 4 22:39:52 2014 -0700

----------------------------------------------------------------------
 iocore/net/P_SSLNetVConnection.h | 3 ---
 iocore/net/SSLNetVConnection.cc  | 1 -
 iocore/net/SSLUtils.cc           | 4 ----
 3 files changed, 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5cf8baf7/iocore/net/P_SSLNetVConnection.h
----------------------------------------------------------------------
diff --git a/iocore/net/P_SSLNetVConnection.h b/iocore/net/P_SSLNetVConnection.h
index 0e033a6..51b7391 100644
--- a/iocore/net/P_SSLNetVConnection.h
+++ b/iocore/net/P_SSLNetVConnection.h
@@ -135,9 +135,6 @@ public:
   /// Set by asynchronous hooks to request a specific operation.
   TSSslVConnOp hookOpRequested;
 
-  // Store the servername returned by SNI
-  char sniServername[TS_MAX_HOST_NAME_LEN];
-
   int64_t read_raw_data();
   void initialize_handshake_buffers() {
     this->handShakeBuffer = new_MIOBuffer();

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5cf8baf7/iocore/net/SSLNetVConnection.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 55fbbe8..ba6f435 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -744,7 +744,6 @@ SSLNetVConnection::SSLNetVConnection():
   npnSet(NULL),
   npnEndpoint(NULL)
 {
-  sniServername[0] = '\0';
 }
 
 void

http://git-wip-us.apache.org/repos/asf/trafficserver/blob/5cf8baf7/iocore/net/SSLUtils.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 6767e50..3bf90d7 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -196,10 +196,6 @@ ssl_servername_callback(SSL * ssl, int * ad, void * /*arg*/)
   Debug("ssl", "ssl_servername_callback ssl=%p ad=%d server=%s handshake_complete=%d", ssl,
*ad, servername,
     netvc->getSSLHandShakeComplete());
 
-  if (servername != NULL) {
-    ink_strlcpy(netvc->sniServername, servername, TS_MAX_HOST_NAME_LEN);
-  }
-
   // catch the client renegotiation early on
   if (SSLConfigParams::ssl_allow_client_renegotiation == false && netvc->getSSLHandShakeComplete())
{
     Debug("ssl", "ssl_servername_callback trying to renegotiate from the client");


Mime
View raw message