dovecot-1.1: ssl: Don't use mempool_system_clean_*() functions. ...

dovecot at dovecot.org dovecot at dovecot.org
Thu Apr 9 21:51:32 EEST 2009


details:   http://hg.dovecot.org/dovecot-1.1/rev/8d1e5a5835c6
changeset: 8238:8d1e5a5835c6
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Apr 09 14:51:24 2009 -0400
description:
ssl: Don't use mempool_system_clean_*() functions. Just extra work and they've had some problems.

diffstat:

1 file changed, 17 deletions(-)
src/login-common/ssl-proxy-openssl.c |   17 -----------------

diffs (34 lines):

diff -r 9a41173d0b75 -r 8d1e5a5835c6 src/login-common/ssl-proxy-openssl.c
--- a/src/login-common/ssl-proxy-openssl.c	Thu Apr 09 14:44:02 2009 -0400
+++ b/src/login-common/ssl-proxy-openssl.c	Thu Apr 09 14:51:24 2009 -0400
@@ -719,21 +719,6 @@ unsigned int ssl_proxy_get_count(void)
 	return ssl_proxy_count;
 }
 
-static void *ssl_clean_malloc(size_t size)
-{
-	return p_malloc(system_clean_pool, size);
-}
-
-static void *ssl_clean_realloc(void *ptr, size_t size)
-{
-	return p_realloc(system_clean_pool, ptr, (size_t)-1, size);
-}
-
-static void ssl_clean_free(void *ptr)
-{
-	p_free(system_clean_pool, ptr);
-}
-
 static bool is_pem_key_file(const char *path)
 {
 	char buf[4096];
@@ -773,8 +758,6 @@ void ssl_proxy_init(void)
 		return;
 	}
 
-	CRYPTO_set_mem_functions(ssl_clean_malloc, ssl_clean_realloc,
-				 ssl_clean_free);
 	SSL_library_init();
 	SSL_load_error_strings();
 


More information about the dovecot-cvs mailing list