dovecot-1.3: ssl: Don't use mempool_system_clean_*() functions. ...
dovecot at dovecot.org
dovecot at dovecot.org
Thu Apr 9 21:52:15 EEST 2009
details: http://hg.dovecot.org/dovecot-1.3/rev/e812e3ed2d6f
changeset: 9049:e812e3ed2d6f
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 25cf5d5b3d9c -r e812e3ed2d6f 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
@@ -720,21 +720,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];
@@ -764,8 +749,6 @@ void ssl_proxy_init(void)
if (strcmp(set->ssl, "no") == 0)
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