opencryptoki / openssl-ibmca

OpenSSL engine and provider for libica.
Apache License 2.0
6 stars 15 forks source link

Dont fail when a libica symbol cannot be resolved. #45

Closed p-steuer closed 6 years ago

p-steuer commented 6 years ago

The engines init/finish function was used as constructor/destructor. Engine init/finish is called per engine object, so move all code that is unrelated to initializing/uninitializing engine objects to new contructor/destructor functions: The libica symbols will be resolved in the constuctor and the engine will not fail if a symbol cannot be resolved.

Signed-off-by: Patrick Steuer patrick.steuer@de.ibm.com

p-steuer commented 6 years ago

... also fixes the engine being initialized two times always, see "initialize the engine implizit" comment in old code.

p-steuer commented 6 years ago

we will address haralds comment in a seperate commit and not mix too much cleanup stuff in patches. If its okay for you , give it a go. I tested it with an apache setup.