You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2020/05/06 08:06:40 UTC

[trafficserver] branch master updated: Remove unused index for SSL application specific data

This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/master by this push:
     new e5d51e4  Remove unused index for SSL application specific data
e5d51e4 is described below

commit e5d51e478ee94fa77b5ebf91f71effdc25839a8d
Author: Masakazu Kitajo <ma...@apache.org>
AuthorDate: Tue May 5 12:03:49 2020 +0900

    Remove unused index for SSL application specific data
    
    ssl_session_ticket_index is registerd but unused.
---
 iocore/net/SSLUtils.cc | 11 -----------
 1 file changed, 11 deletions(-)

diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 2dbfb27..39a160d 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -92,10 +92,6 @@ static constexpr char SSL_CERT_SEPARATE_DELIM = ',';
 
 SSLSessionCache *session_cache; // declared extern in P_SSLConfig.h
 
-#if TS_HAVE_OPENSSL_SESSION_TICKETS
-static int ssl_session_ticket_index = -1;
-#endif
-
 static int ssl_vc_index = -1;
 
 static ink_mutex *mutex_buf      = nullptr;
@@ -912,13 +908,6 @@ SSLInitializeLibrary()
     CRYPTO_set_dynlock_destroy_callback(ssl_dyn_destroy_callback);
   }
 
-#ifdef TS_HAVE_OPENSSL_SESSION_TICKETS
-  ssl_session_ticket_index = SSL_CTX_get_ex_new_index(0, nullptr, nullptr, nullptr, ssl_session_ticket_free);
-  if (ssl_session_ticket_index == -1) {
-    SSLError("failed to create session ticket index");
-  }
-#endif
-
 #if TS_USE_TLS_OCSP
   ssl_stapling_ex_init();
 #endif /* TS_USE_TLS_OCSP */