Hi,

I'm working on an OpenSSL Engine implementation and I don't entirely get the 
idea behind Structural and Functional references. So, I'd be very grateful if 
someone could comment on my approach of handling references.

If I have multiple SSL connections using an engine at the same time, IS IT TRUE 
THAT-
1. I should have at least one structural and one functional reference for the 
entire duration within which the engine will be used i.e., between the calls to 
ENGINE_by_id() and ENGINE_cleanup(). Or can the structural reference be freed 
once a functional reference has been obtained?
2. Although various other functions like ENGINE_init(), ENGINE_set_default(), 
etc. increase the number of structural and functional references to my engine 
variable (as documented for each function), I should go on a free the extra 
references and should only maintain one structural and one functional reference 
to the engine at all times.


Thank you,
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