]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
ssl: Don't use mempool_system_clean_*() functions. Just extra work and they've had...
authorTimo Sirainen <tss@iki.fi>
Thu, 9 Apr 2009 18:51:24 +0000 (14:51 -0400)
committerTimo Sirainen <tss@iki.fi>
Thu, 9 Apr 2009 18:51:24 +0000 (14:51 -0400)
--HG--
branch : HEAD

src/login-common/ssl-proxy-openssl.c

index 8cfbad9d063085aa34e87c786ad65affd0188929..4cc13ef5ad9b8e3ec109b213b45d45aba5931bd4 100644 (file)
@@ -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();