Hi

The APIs XXX_get_ex_new_index cause 
CRYPTO_get_ex_new_index to allocate new memory.
This memory is never freed.

(X509_STORE_CTX_get_ex_new_index, RSA_get_ex_new_index,  
DSA_get_ex_new_index etc.)

Would it possible to add functions that will allow the application at 
termination time to free this memory with the rest of the cleanup?

Something like:

void X509_STORE_CTX_free_ex_methods(  )
{
        if ( x509_store_ctx_method )
        {
                sk_CRYPTO_EX_DATA_FUNCS_pop_free( 
x509_store_ctx_method , OPENSSL_freeFunc );
                x509_store_ctx_method = NULL;
        x509_store_ctx_num = 0;
        }
}


TIA

Dror
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to