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 973bd0eda Remove unused code
973bd0eda is described below

commit 973bd0edaabbc8c0204be63d0ecaa2f0e25e6c2e
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 7b46b04bc..f132244fb 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -271,7 +271,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 a678583db..786cb6f2e 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -568,7 +568,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