>  ENGINE_free all of the structural references you got, including the one for 
> the ENGINE you're using

And so in order to free all structural references of an ENGINE * e, I could 
just do this?-

while( e->struct_ref > 0 ) {
        ENGINE_free( e );
}

And to keep all but one functional reference to e, I could do this?-

while(e->funct_ref > 1 ) {
        ENGINE_finish( e );
}

> I don't think there is any cost to having extra references (of either kind) 
> to an ENGINE, as long as all of the references are freed when you are done.

Once again, free all functional references and structural references if any and 
then call the ENGINE_cleanup() function ?


Thanks for the help Wim!


Sunjeet


______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           majord...@openssl.org

Reply via email to