This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git

commit 6fbbfb7e7804616bcd3dc80853944e03880d68ff
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Fri Sep 29 10:01:44 2023 +0100

    Remove unused function
---
 native/src/ssl.c | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/native/src/ssl.c b/native/src/ssl.c
index b114be67c..9b91d57d7 100644
--- a/native/src/ssl.c
+++ b/native/src/ssl.c
@@ -249,31 +249,6 @@ static int ssl_rand_load_file(const char *file)
     return -1;
 }
 
-/*
- * writes a number of random bytes (currently 1024) to
- * file which can be used to initialize the PRNG by calling
- * RAND_load_file() in a later session
- */
-static int ssl_rand_save_file(const char *file)
-{
-    char buffer[APR_PATH_MAX];
-#ifndef OPENSSL_NO_EGD
-    int n;
-#endif
-
-    if (file == NULL)
-        file = RAND_file_name(buffer, sizeof(buffer));
-#ifndef OPENSSL_NO_EGD
-    else if ((n = RAND_egd(file)) > 0) {
-        return 0;
-    }
-#endif
-    if (file == NULL || !RAND_write_file(file))
-        return 0;
-    else
-        return 1;
-}
-
 int SSL_rand_seed(const char *file)
 {
     unsigned char stackdata[256];


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to