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 82e6f6e44 Remove unused code
82e6f6e44 is described below

commit 82e6f6e440c41cf12007a15d4a24fb05a66e0ef6
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 1e3e00916..2e0ee8ab9 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -294,10 +294,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 786cb6f2e..3970ea8f8 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -66,12 +66,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