Hi,
   I found that when my application terminates the temporary keys
generated leak.

   So to clean it up I am storing some information like the temp DH key
generated during the handshake in the SSL ex_data structure using

SSL_set_ex_data(pSSL,0,reinterpret_cast<void *> (pDH));

and after the connection is serviced to clean up the DH  key generated I
do
DH_free( reinterpret_cast<DH*> (SSL_get_ex_data(pSSL,0) ) );

This does free up the key, but then i do get access violations on
termination
I suspect this has to do with the the freeing up of the ex_data stack
where each stack member is freed, but that i have already freed up in my
case and so the access violations.
How do i get the CRYPTO_free_ex_data function to do a custom free ( like
in my case call DH_free() ?

Thanks,
Amit


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

Reply via email to