summaryrefslogtreecommitdiffstats
path: root/apps/include/apps_ui.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2020-11-25 14:10:29 +0100
committerRichard Levitte <levitte@openssl.org>2020-11-26 17:04:21 +0100
commita6a5dec611da16a8bab81dca4172d5ea2ae99dc2 (patch)
tree0b2589d79fcc143503201a08026adc2506ce57da /apps/include/apps_ui.h
parente3197e5ab23f7d38da940999422d9ba2dc487e94 (diff)
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)
Diffstat (limited to 'apps/include/apps_ui.h')
-rw-r--r--apps/include/apps_ui.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/include/apps_ui.h b/apps/include/apps_ui.h
index 59a82d5ecb..6875b7c372 100644
--- a/apps/include/apps_ui.h
+++ b/apps/include/apps_ui.h
@@ -21,7 +21,8 @@ int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data);
int setup_ui_method(void);
void destroy_ui_method(void);
-UI_METHOD *get_ui_method(void);
+int set_base_ui_method(const UI_METHOD *ui_method);
+const UI_METHOD *get_ui_method(void);
extern BIO *bio_err;