Fix UI method setup, which should be independent of (deprecated) engine use
@@ -2924,7 +2924,6 @@ int cmp_main(int argc, char **argv)
ret = 0;
if (opt_batch) {
-#ifndef OPENSSL_NO_ENGINE
UI_METHOD *ui_fallback_method;
#ifndef OPENSSL_NO_UI_CONSOLE
ui_fallback_method = UI_OpenSSL();
@@ -2932,7 +2931,6 @@ int cmp_main(int argc, char **argv)
ui_fallback_method = (UI_METHOD *)UI_null();
#endif
UI_method_set_reader(ui_fallback_method, NULL);
-#endif
}
if (opt_engine != NULL)
