Hello - 

I have been reading the openssl engine documentation --> 
http://www.openssl.org/docs/crypto/engine.html  but am still unclear on some 
things.

I am not using openssl directly, but rather using M2Crypto which wraps openssl. 
 So here is the flow of things with the corresponding openssl calls at the end 
of each statement

1) load the dynamic engine which is engine_pkcs11.so  ENGINE_load_dynamic()
2) create a new engine instance  ENGINE_by_id()
3) initialize the engine  ENGINE_init()
4) cleanup the engine  ENGINE_cleanup()

If I call this code multiple times, I get an error when trying to load the 
dynamic engine the 2nd time.  Am I missing some kind of cleanup step?  Do I 
need to add an ENGINE_finish() call?  Is there a way to determine whether an 
engine is already loaded and initialized so I don't try to load it a second 
time?  

Thanks very much!


      

Reply via email to