OpenSC/OpenSC — pull request #118 by ariadnext (2013-01-10 17:12:36+00:00)
Title: OpenSSL don't need to be initialized with engines

This version of pkcs11-tool cause a bug in my setup.
I got a CKR_CRYPTOKI_ALREADY_INITIALIZED when i try to use a token.

My openssl conf file is configured to use my pkcs11 token so when Openssl is initialized, the engine are initialized (C_Initialize is called).
Then when pkcs11-tool want to intialize the token, the CKR_CRYPTOKI_ALREADY_INITIALIZED error is fired.

As openssl is only used for certificate and few operations, i think that we could call OPENSSL_no_config before OpenSSL initialisation to prevent openssl load its conf file.

=> This is working fine on my setup

Could someone check this patch ?