OpenSSL: Automatically enable PKCS#11 engine where it's needed
authorDavid Woodhouse <dwmw2@infradead.org>
Thu, 18 Dec 2014 15:09:47 +0000 (15:09 +0000)
committerJouni Malinen <j@w1.fi>
Mon, 29 Dec 2014 13:49:05 +0000 (15:49 +0200)
commit96955192b3e53b53233ad885aa694ff1e1f41fb0
tree4e82306be0288b097a57d73908974b4293ea84ad
parentddda627618eb44c1928e1a14aff336c926fb6dc5
OpenSSL: Automatically enable PKCS#11 engine where it's needed

It needs to be available to ENGINE_by_id(), which in my case means it
needs to be /usr/lib64/openssl/engines/libpkcs11.so. But that's a system
packaging issue. If it isn't there, it will fail gracefully enough with:

ENGINE: engine pkcs11 not available [error:25066067:DSO support routines:DLFCN_LOAD:could not load the shared library]
TLS: Failed to set TLS connection parameters
EAP-TLS: Failed to initialize SSL.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
src/crypto/tls_openssl.c