=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/openssl/apps_posix.c,v retrieving revision 1.1 retrieving revision 1.2 diff -c -r1.1 -r1.2 *** src/usr.bin/openssl/apps_posix.c 2014/12/03 22:16:02 1.1 --- src/usr.bin/openssl/apps_posix.c 2015/09/13 12:41:01 1.2 *************** *** 142,144 **** --- 142,164 ---- return (ret); } + + int + setup_ui(void) + { + ui_method = UI_create_method("OpenSSL application user interface"); + UI_method_set_opener(ui_method, ui_open); + UI_method_set_reader(ui_method, ui_read); + UI_method_set_writer(ui_method, ui_write); + UI_method_set_closer(ui_method, ui_close); + return 0; + } + + void + destroy_ui(void) + { + if (ui_method) { + UI_destroy_method(ui_method); + ui_method = NULL; + } + }