Optimize openssl initialization 16/36116/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 17 Feb 2015 13:42:34 +0000 (14:42 +0100)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 4 Mar 2015 08:32:07 +0000 (09:32 +0100)
commitb9faa9c21522d9a6e98a892c0cbaab3db3c83521
tree17ae2e9034283bc6a4754a211edefd832ab8b047
parent61f364b4b0ca848f0f7723e4f50378fb3ade2106
Optimize openssl initialization

[Issue#] N/A
[Feature/Bug] N/A
[Problem] Each time Manager or PKCS12 object is created initCryptoLib is called
and mutex is locked inside it.
[Cause] N/A
[Solution] Once openssl is initialized the initalization function pointer is
switched to empty one, thus mutex is not used any more.

[Verification] Run tests. Alternatively check in gdb that client calls
initOpenSSL() only once

Change-Id: I733e4ca6c88a6a51d69ebb0606f560a9b4828e4c
src/manager/common/crypto-init.cpp