diff options
author | Richard Levitte <levitte@openssl.org> | 2020-11-25 14:13:30 +0100 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2020-11-26 17:04:21 +0100 |
commit | 467f441bc63f5c017a3626bcba9582e96d4790ad (patch) | |
tree | de823c9bed32b7f5ba8d1dff4c753d46f7008fbe /apps | |
parent | a6a5dec611da16a8bab81dca4172d5ea2ae99dc2 (diff) |
APPS: Modify apps/cmp.c to use set_base_ui_method() for its -batch option
Fixes #13511
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13512)
Diffstat (limited to 'apps')
-rw-r--r-- | apps/cmp.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/cmp.c b/apps/cmp.c index 17173374df..c9bbbb32ba 100644 --- a/apps/cmp.c +++ b/apps/cmp.c @@ -2697,12 +2697,8 @@ int cmp_main(int argc, char **argv) goto err; ret = 0; - if (opt_batch) { -#ifndef OPENSSL_NO_UI_CONSOLE - UI_method_set_reader(UI_OpenSSL(), NULL); - /* can't change get_ui_method() here as load_key_certs_crls() uses it */ -#endif - } + if (opt_batch) + set_base_ui_method(UI_null()); if (opt_engine != NULL) engine = setup_engine_methods(opt_engine, 0 /* not: ENGINE_METHOD_ALL */, 0); |