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

markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/main by this push:
     new 67c837b42 Use correct size for ticket keys
67c837b42 is described below

commit 67c837b42e2b0e4b1677e7c6f4ccfea85082ce36
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Jun 10 19:40:57 2026 +0100

    Use correct size for ticket keys
---
 native/src/sslcontext.c           | 2 +-
 xdocs/miscellaneous/changelog.xml | 4 ++++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 954bbc7b4..6c74b2369 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -1445,7 +1445,7 @@ TCN_IMPLEMENT_CALL(jlong, SSLContext, 
sessionCacheFull)(TCN_STDARGS, jlong ctx)
     return rv;
 }
 
-#define TICKET_KEYS_SIZE 48
+#define TICKET_KEYS_SIZE 80
 TCN_IMPLEMENT_CALL(void, SSLContext, setSessionTicketKeys)(TCN_STDARGS, jlong 
ctx, jbyteArray keys)
 {
     tcn_ssl_ctxt_t *c = J2P(ctx, tcn_ssl_ctxt_t *);
diff --git a/xdocs/miscellaneous/changelog.xml 
b/xdocs/miscellaneous/changelog.xml
index fb69471a2..84f69015c 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -41,6 +41,10 @@
       Fix two potential memory leaks on error paths identified by Copilot.
       (markt)
     </fix>
+    <fix>
+      <bug>70102</bug>: Correct expected size of tickets when calling
+      <code>SSLContext.setSessionTicketKeys</code>. (markt)
+    </fix>
   </changelog>
 </section>
 <section name="2.0.14" rtext="2026-03-10">


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to