Hello! On Fri, 3 Dec 2004, Dmitry Belyavsky wrote:
> I have custom dynamically-loaded engine implementing some non-standard > algorithms. So I register NIDs using OBJ_create from engine bind function. > Registering code looks like > > my_NID = OBJ_create("1.2.3.4.5","OID_example","Our example OID"); > > On unload I get segfault in apps_shutdown. It happens in > OBJ_NAME_cleanup. It looks like OBJ_NAME_cleanup tries to free memory > belongs to unloaded library. > > What should I do to avoid this? I found out segfault happens because function registered as ENGINE_set_destroy_function is never called. When it is called (for example, when I use engine only to calc digest), there are some memory leaks looks like they are because of registering objects. -- SY, Dmitry Belyavsky (ICQ UIN 11116575) ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]