]> git.ipfire.org Git - thirdparty/openssl.git/commit
APPS: Make it possible for apps to set the base (fallback) UI_METHOD
authorRichard Levitte <levitte@openssl.org>
Wed, 25 Nov 2020 13:10:29 +0000 (14:10 +0100)
committerRichard Levitte <levitte@openssl.org>
Thu, 26 Nov 2020 16:04:21 +0000 (17:04 +0100)
commita6a5dec611da16a8bab81dca4172d5ea2ae99dc2
tree0b2589d79fcc143503201a08026adc2506ce57da
parente3197e5ab23f7d38da940999422d9ba2dc487e94
APPS: Make it possible for apps to set the base (fallback) UI_METHOD

The apps UI method acts as a proxy that bases its activity on a base
(was called fallback) UI_METHOD, which defaults to UI_OpenSSL() under
normal circumstances.

However, some apps might want to have it based on another UI_METHOD,
such as UI_null() to avoid prompting (typical for a -batch run).  The
new function set_base_ui_method() allows them to do precisely this.

Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/13512)
apps/include/apps_ui.h
apps/lib/apps_ui.c