opencryptoki / openssl-ibmca

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

test/provider: Explicitly initialize OpenSSL after setting env vars #113

Closed ifranzki closed 5 months ago

ifranzki commented 5 months ago

When running with a libica version without commit https://github.com/opencryptoki/libica/commit/42e197f61b298c6e6992b080c1923e7e85edea5a it is necessary to explicitly initialize OpenSSL before loading libica. Because otherwise libica's library constructor will initialize OpenSSL the first time, which in turn will load the IBMCA provider, and it will fall into the same problem as fixed by above libica commit, i.e. the provider won't be able to get the supported algorithms from libica an thus will not register any algorithms.