You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by am...@apache.org on 2014/08/27 15:53:17 UTC

git commit: TS-3022: Fix build error for non-ticket platforms.

Repository: trafficserver
Updated Branches:
  refs/heads/5.1.x d0da9a841 -> 9dc0d2d65


TS-3022: Fix build error for non-ticket platforms.


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

Branch: refs/heads/5.1.x
Commit: 9dc0d2d65ce2caa1fae86e1939dfba3edf6172f3
Parents: d0da9a8
Author: Alan M. Carroll <am...@network-geographics.com>
Authored: Wed Aug 27 08:52:56 2014 -0500
Committer: Alan M. Carroll <am...@network-geographics.com>
Committed: Wed Aug 27 08:52:56 2014 -0500

----------------------------------------------------------------------
 iocore/net/SSLUtils.cc | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafficserver/blob/9dc0d2d6/iocore/net/SSLUtils.cc
----------------------------------------------------------------------
diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 84d2810..686eac4 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -548,10 +548,12 @@ SSLInitializeLibrary()
     CRYPTO_set_id_callback(SSL_pthreads_thread_id);
   }
 
+#ifdef SSL_CTX_set_tlsext_ticket_key_cb
   ssl_session_ticket_index = SSL_CTX_get_ex_new_index(0, NULL, NULL, NULL, session_ticket_free);
   if (ssl_session_ticket_index == -1) {
     SSLError("failed to create session ticket index");
   }
+#endif
 
 #ifdef HAVE_OPENSSL_OCSP_STAPLING
   ssl_stapling_ex_init();