diff options
Diffstat (limited to 'src/usr.bin/openssl/apps_posix.c')
-rw-r--r-- | src/usr.bin/openssl/apps_posix.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/usr.bin/openssl/apps_posix.c b/src/usr.bin/openssl/apps_posix.c index c49a23a653..67cd465088 100644 --- a/src/usr.bin/openssl/apps_posix.c +++ b/src/usr.bin/openssl/apps_posix.c | |||
@@ -142,3 +142,23 @@ app_tminterval(int stop, int usertime) | |||
142 | 142 | ||
143 | return (ret); | 143 | return (ret); |
144 | } | 144 | } |
145 | |||
146 | int | ||
147 | setup_ui(void) | ||
148 | { | ||
149 | ui_method = UI_create_method("OpenSSL application user interface"); | ||
150 | UI_method_set_opener(ui_method, ui_open); | ||
151 | UI_method_set_reader(ui_method, ui_read); | ||
152 | UI_method_set_writer(ui_method, ui_write); | ||
153 | UI_method_set_closer(ui_method, ui_close); | ||
154 | return 0; | ||
155 | } | ||
156 | |||
157 | void | ||
158 | destroy_ui(void) | ||
159 | { | ||
160 | if (ui_method) { | ||
161 | UI_destroy_method(ui_method); | ||
162 | ui_method = NULL; | ||
163 | } | ||
164 | } | ||