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

commit 29ce47843e40d3640c498ff3f5df08dc989231c0
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 10:08:45 2026 +0100

    Remove unused code
---
 native/include/ssl_private.h | 4 ----
 native/src/sslcontext.c      | 6 ------
 2 files changed, 10 deletions(-)

diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
index 8972e1e49..fa9ff2534 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -303,10 +303,6 @@ struct tcn_ssl_ctxt_t {
     jobject verifier;
     jmethodID verifier_method;
 
-    unsigned char   *next_proto_data;
-    unsigned int    next_proto_len;
-    int             next_selector_failure_behavior;
-
     /* Holds the alpn protocols, each of them prefixed with the len of the 
protocol */
     unsigned char   *alpn_proto_data;
     unsigned int    alpn_proto_len;
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index baab5f4e4..326d1d788 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -67,12 +67,6 @@ static apr_status_t ssl_context_cleanup(void *data)
         }
         c->verifier_method = NULL;
 
-        if (c->next_proto_data) {
-            free(c->next_proto_data);
-            c->next_proto_data = NULL;
-        }
-        c->next_proto_len = 0;
-
         if (c->alpn_proto_data) {
             free(c->alpn_proto_data);
             c->alpn_proto_data = NULL;


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

Reply via email to