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

commit ff69db144836eb3dbb9e056ac65609fd54c7b7c3
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 10:34:55 2026 +0100

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

diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
index 8ca4db41e..9286c5644 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -307,7 +307,6 @@ struct tcn_ssl_conf_ctxt_t {
 typedef struct {
     apr_pool_t     *pool;
     tcn_ssl_ctxt_t *ctx;
-    X509           *peer;
     /* Track the handshake/renegotiation state for the connection so
      * that all client-initiated renegotiations can be rejected, as a
      * partial fix for CVE-2009-3555.
diff --git a/native/src/sslutils.c b/native/src/sslutils.c
index a4b9e2cea..a6ec8846f 100644
--- a/native/src/sslutils.c
+++ b/native/src/sslutils.c
@@ -376,10 +376,6 @@ int SSL_callback_SSL_verify(int ok, X509_STORE_CTX *ctx)
         /* TODO: Some logging
          * Certificate Verification: Error
          */
-        if (con->peer) {
-            X509_free(con->peer);
-            con->peer = NULL;
-        }
     }
     if (errdepth > depth) {
         /* TODO: Some logging


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

Reply via email to