diff options
author | Safayet N Ahmed <Safayet.Ahmed@ge.com> | 2018-12-19 08:16:34 -0500 |
---|---|---|
committer | Tadeusz Struk <tadeusz.struk@intel.com> | 2018-12-21 10:52:16 -0800 |
commit | 266af7ffa335b9b0ef59f6e5fe541a774cb203a1 (patch) | |
tree | 0f374df44308d405c9930e04547b07c3e44af461 /src/tss2-esys | |
parent | 1512791397fde584f2d5bb7f9d31757d4b481d88 (diff) | |
download | tpm2-tss-266af7ffa335b9b0ef59f6e5fe541a774cb203a1.tar.gz |
esys_crypto_ossl.c: load engine explicitly
In some cases, when built with the openssl crypto backend,
"ENGINE_by_id("openssl");" fails with the error that no engine named
"libopenssl.so" was found in the openssl "engines" directory. Loading the engine
explicitly with a call to "ENGINE_load_builtin_engines" eliminates this error.
Signed-off-by: Safayet Ahmed <safayet.ahmed@ge.com>
Diffstat (limited to 'src/tss2-esys')
-rw-r--r-- | src/tss2-esys/esys_crypto_ossl.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tss2-esys/esys_crypto_ossl.c b/src/tss2-esys/esys_crypto_ossl.c index b1137ee4..c03bebd7 100644 --- a/src/tss2-esys/esys_crypto_ossl.c +++ b/src/tss2-esys/esys_crypto_ossl.c @@ -1121,6 +1121,7 @@ iesys_cryptossl_sym_aes_decrypt(uint8_t * key, */ TSS2_RC iesys_cryptossl_init() { + ENGINE_load_builtin_engines(); OpenSSL_add_all_algorithms(); return TSS2_RC_SUCCESS; } |