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

zwoop pushed a commit to branch 9.2.x
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/9.2.x by this push:
     new 7354a94  Set an appropriate callback function for OpenSSL3 (#8524)
7354a94 is described below

commit 7354a94b99bf72c294b46a34cb23687c38dea1a3
Author: Masakazu Kitajo <[email protected]>
AuthorDate: Sat Nov 27 17:19:13 2021 +0900

    Set an appropriate callback function for OpenSSL3 (#8524)
    
    (cherry picked from commit 796be32d21600ecad42c749fecd4404ed9b71d1e)
---
 iocore/net/SSLUtils.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/iocore/net/SSLUtils.cc b/iocore/net/SSLUtils.cc
index 8875cb4..40bb070 100644
--- a/iocore/net/SSLUtils.cc
+++ b/iocore/net/SSLUtils.cc
@@ -746,7 +746,11 @@ ssl_context_enable_tickets(SSL_CTX *ctx, const char 
*ticket_key_path)
   // Setting the callback can only fail if OpenSSL does not recognize the
   // SSL_CTRL_SET_TLSEXT_TICKET_KEY_CB constant. we set the callback first
   // so that we don't leave a ticket_key pointer attached if it fails.
+#ifdef HAVE_SSL_CTX_SET_TLSEXT_TICKET_KEY_EVP_CB
+  if (SSL_CTX_set_tlsext_ticket_key_evp_cb(ctx, ssl_callback_session_ticket) 
== 0) {
+#else
   if (SSL_CTX_set_tlsext_ticket_key_cb(ctx, ssl_callback_session_ticket) == 0) 
{
+#endif
     Error("failed to set session ticket callback");
     ticket_block_free(keyblock);
     return nullptr;

Reply via email to