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 d911c0f..969b6b8 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 d9f7c08..7cdf711 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