From 264b2d92511572a247ecb673d61ff385deb9eb8d Mon Sep 17 00:00:00 2001 From: Richard Levitte Date: Tue, 6 Dec 2016 04:17:18 +0100 Subject: Enable apps to get a UI_METHOD for the default prompter Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2204) --- apps/apps.c | 5 +++++ apps/apps.h | 1 + 2 files changed, 6 insertions(+) diff --git a/apps/apps.c b/apps/apps.c index d911c0f978..969b6b84ed 100644 --- a/apps/apps.c +++ b/apps/apps.c @@ -245,6 +245,11 @@ void destroy_ui_method(void) ui_method = NULL; } } + +const UI_METHOD *get_ui_method(void) +{ + return ui_method; +} #endif int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_tmp) diff --git a/apps/apps.h b/apps/apps.h index d9f7c08e94..7cdf711706 100644 --- a/apps/apps.h +++ b/apps/apps.h @@ -389,6 +389,7 @@ int password_callback(char *buf, int bufsiz, int verify, PW_CB_DATA *cb_data); int setup_ui_method(void); void destroy_ui_method(void); +const UI_METHOD *get_ui_method(void); int chopup_args(ARGS *arg, char *buf); # ifdef HEADER_X509_H -- cgit v1.2.3