If either OPENSSL_NO_DYNAMIC_ENGINE or OPENSSL_NO_ENGINE is defined, ima-evm-utils cannot be built with OpenSSL engine support. Disable engine support. Suggested-by: Vitaly Chikunov <vt@xxxxxxxxxxxx> Fixes: 9e08e4495f24 ("Disable use of OpenSSL "engine" support") Signed-off-by: Mimi Zohar <zohar@xxxxxxxxxxxxx> --- src/imaevm.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/imaevm.h b/src/imaevm.h index ebe8c20d566a..8114bd051514 100644 --- a/src/imaevm.h +++ b/src/imaevm.h @@ -52,6 +52,10 @@ #include <openssl/engine.h> #endif +#if defined(OPENSSL_NO_ENGINE) || defined(OPENSSL_NO_DYNAMIC_ENGINE) +#undef CONFIG_ENGINE +#endif + #ifdef USE_FPRINTF #define do_log(level, fmt, args...) \ ({ if (level <= imaevm_params.verbose) fprintf(stderr, fmt, ##args); }) -- 2.31.1