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 69a40c18798aeb63b58ba236d16193d8d21733fc
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 10:02:05 2026 +0100

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

diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
index b332f2e36..bf7e87e7e 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -280,7 +280,6 @@ struct tcn_ssl_ctxt_t {
     X509            *certs[SSL_AIDX_MAX];
     EVP_PKEY        *keys[SSL_AIDX_MAX];
 
-    int             ca_certs;
     int             shutdown_type;
     char            *rand_file;
 
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 019aa3ade..baab5f4e4 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -770,7 +770,6 @@ TCN_IMPLEMENT_CALL(jboolean, SSLContext, 
setCACertificate)(TCN_STDARGS,
     c->store = SSL_CTX_get_cert_store(c->ctx);
     if (c->mode) {
         STACK_OF(X509_NAME) *ca_certs;
-        c->ca_certs++;
         ca_certs = SSL_CTX_get_client_CA_list(c->ctx);
         if (ca_certs == NULL) {
             ca_certs = SSL_load_client_CA_file(J2S(file));


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

Reply via email to