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

[trafficserver] branch master updated: Removes SSLNetVConnection::sslContextSet

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

rrm 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 fcbcd73  Removes SSLNetVConnection::sslContextSet
fcbcd73 is described below

commit fcbcd73f86b7d3835e632e4f26579efda9f51a17
Author: Randall Meyer <rr...@apache.org>
AuthorDate: Thu Jun 18 10:47:21 2020 -0700

    Removes SSLNetVConnection::sslContextSet
    
    This was introduced in 044da6999442449434b282d8b537d8858505bbfc but was
    never used
---
 iocore/net/P_SSLNetVConnection.h |  4 ----
 iocore/net/SSLNetVConnection.cc  | 12 ------------
 2 files changed, 16 deletions(-)

diff --git a/iocore/net/P_SSLNetVConnection.h b/iocore/net/P_SSLNetVConnection.h
index 4e63e63..8f09590 100644
--- a/iocore/net/P_SSLNetVConnection.h
+++ b/iocore/net/P_SSLNetVConnection.h
@@ -177,10 +177,6 @@ public:
   /// Reenable the VC after a pre-accept or SNI hook is called.
   virtual void reenable(NetHandler *nh, int event = TS_EVENT_CONTINUE);
 
-  /// Set the SSL context.
-  /// @note This must be called after the SSL endpoint has been created.
-  virtual bool sslContextSet(void *ctx);
-
   int64_t read_raw_data();
 
   void
diff --git a/iocore/net/SSLNetVConnection.cc b/iocore/net/SSLNetVConnection.cc
index 94a9815..8d19880 100644
--- a/iocore/net/SSLNetVConnection.cc
+++ b/iocore/net/SSLNetVConnection.cc
@@ -1652,18 +1652,6 @@ SSLNetVConnection::reenable(NetHandler *nh, int event)
 }
 
 bool
-SSLNetVConnection::sslContextSet(void *ctx)
-{
-  bool zret = true;
-  if (ssl) {
-    SSL_set_SSL_CTX(ssl, static_cast<SSL_CTX *>(ctx));
-  } else {
-    zret = false;
-  }
-  return zret;
-}
-
-bool
 SSLNetVConnection::callHooks(TSEvent eventId)
 {
   // Only dealing with the SNI/CERT hook so far.