Enable apps to get a UI_METHOD for the default prompter
authorRichard Levitte <levitte@openssl.org>
Tue, 6 Dec 2016 03:17:18 +0000 (04:17 +0100)
committerRichard Levitte <levitte@openssl.org>
Wed, 11 Jan 2017 17:27:27 +0000 (18:27 +0100)
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/2204)

apps/apps.c
apps/apps.h

index d911c0f9785d24330b8e21d0584197ec3ca00313..969b6b84ed6ad4a2e2caf6075559e33aa967cbc6 100644 (file)
@@ -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)
index d9f7c08e94ddc70bf8ba1df4431523ccac0033da..7cdf7117063cbc8ce7a07f5d0722323c35161862 100644 (file)
@@ -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