This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 1.3.x
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git
The following commit(s) were added to refs/heads/1.3.x by this push:
new 778a06d72 Use correct size for ticket keys
778a06d72 is described below
commit 778a06d720402bc0330101b64e2486d3c542fa1d
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 e7f1192e1..3fec8e5a7 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -1730,7 +1730,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 5a1d9d9fe..f98c311c8 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="1.3.7" rtext="2026-03-10">
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]