From: Richard Levitte Date: Tue, 6 Dec 2016 03:17:18 +0000 (+0100) Subject: Enable apps to get a UI_METHOD for the default prompter X-Git-Tag: OpenSSL_1_1_1-pre1~2693 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=264b2d92511572a247ecb673d61ff385deb9eb8d;p=oweals%2Fopenssl.git Enable apps to get a UI_METHOD for the default prompter Reviewed-by: Rich Salz (Merged from https://github.com/openssl/openssl/pull/2204) --- 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