On Wed, Mar 26, 2003, Lutz Jaenicke wrote about "Re: SSL_CTX_free messes with external 
session cache":
> Hmm. I extensively use external session caching. But I never call
> SSL_CTX_free(), as my application will terminate in this moment anyway,
> so this oddity went by unnoted...

This is the bane of C++: it's too easy to write a destructor, so I had one,
and it called SSL_CTX_free(). And this destructor got called when a process
exited (sort of like atexit(3), but a heck lot harder to debug). :)

By the way, this problem is so easy to circumvent that even if you decide
not to change the current behaviour, maybe the manual should be changed to
say that one can use:
        SSL_CTX_sess_set_remove_cb(ctx,  NULL);
        SSL_CTX_free(ctx);
To free a ctx without having the remove callback called.


-- 
Nadav Har'El                        |  Wednesday, Mar 26 2003, 23 Adar II 5763
[EMAIL PROTECTED]             |-----------------------------------------
Phone: +972-53-245868, ICQ 13349191 |Linux: Because rebooting is for adding
http://nadav.harel.org.il           |new hardware.
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    [EMAIL PROTECTED]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to