OpenSSL: Initialise PKCS#11 engine even if found with ENGINE_by_id()
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 8 Jun 2016 20:03:40 +0000 (21:03 +0100)
committerJouni Malinen <j@w1.fi>
Sat, 11 Jun 2016 09:21:08 +0000 (12:21 +0300)
commitc3d7fb7e2724150950e1a1eac29460ea255811c3
tree379cda76fe3bcc597ee65b554da80d2ba249369c
parentfdc1188a85bb1e2c0a03e38724f6cd126ff374ad
OpenSSL: Initialise PKCS#11 engine even if found with ENGINE_by_id()

Recent versions of engine_pkcs11 are set up to be autoloaded on demand
with ENGINE_by_id() because they don't need explicit configuration.

But if we *do* want to explicitly configure them with a PKCS#11 module
path, we should still do so.

We can't tell whether it was already initialised, but it's harmless to
repeat the MODULE_PATH command if it was.

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Tested-by: Michael Schaller <misch@google.com>
src/crypto/tls_openssl.c