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 f58edcbfc Remove remaining unused structure members
f58edcbfc is described below
commit f58edcbfc03e6a6a57307cbb5d1bf4fe8307da94
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Aug 27 12:12:38 2026 +0100
Remove remaining unused structure members
---
native/include/ssl_private.h | 3 ---
native/src/ssl.c | 2 +-
native/src/sslcontext.c | 4 ----
3 files changed, 1 insertion(+), 8 deletions(-)
diff --git a/native/include/ssl_private.h b/native/include/ssl_private.h
index d032267a6..5df47a92e 100644
--- a/native/include/ssl_private.h
+++ b/native/include/ssl_private.h
@@ -170,7 +170,6 @@ struct tcn_ssl_ctxt_t {
apr_pool_t *pool;
SSL_CTX *ctx;
BIO *bio_os;
- BIO *bio_is;
/* we are one or the other */
int mode;
@@ -181,8 +180,6 @@ struct tcn_ssl_ctxt_t {
X509 *certs[SSL_AIDX_MAX];
EVP_PKEY *keys[SSL_AIDX_MAX];
- char *rand_file;
-
/* for client or downstream server authentication */
int verify_depth;
int verify_mode;
diff --git a/native/src/ssl.c b/native/src/ssl.c
index 0c74cb22a..167827d15 100644
--- a/native/src/ssl.c
+++ b/native/src/ssl.c
@@ -374,7 +374,7 @@ TCN_IMPLEMENT_CALL(jlong /* SSL * */, SSL,
newSSL)(TCN_STDARGS,
/* Setup verify and seed */
SSL_set_verify_result(ssl, X509_V_OK);
- SSL_rand_seed(c->rand_file);
+ SSL_rand_seed(NULL);
/* Store for later usage in SSL_callback_SSL_verify */
SSL_set_app_data2(ssl, c);
diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 05bc68ec7..094e3dcd1 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -48,10 +48,6 @@ static apr_status_t ssl_context_cleanup(void *data)
c->keys[i] = NULL;
}
}
- if (c->bio_is) {
- BIO_free(c->bio_is);
- c->bio_is = NULL;
- }
if (c->bio_os) {
BIO_free(c->bio_os);
c->bio_os = NULL;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]