Lines Matching refs:ui

18 static int ui_open(UI *ui)  in ui_open()  argument
20 int (*opener)(UI *ui) = UI_method_get_opener(ui_base_method); in ui_open()
23 return opener(ui); in ui_open()
27 static int ui_read(UI *ui, UI_STRING *uis) in ui_read() argument
29 int (*reader)(UI *ui, UI_STRING *uis) = NULL; in ui_read()
32 && UI_get0_user_data(ui)) { in ui_read()
38 ((PW_CB_DATA *)UI_get0_user_data(ui))->password; in ui_read()
41 UI_set_result(ui, uis, password); in ui_read()
56 return reader(ui, uis); in ui_read()
58 UI_set_result(ui, uis, ""); in ui_read()
62 static int ui_write(UI *ui, UI_STRING *uis) in ui_write() argument
64 int (*writer)(UI *ui, UI_STRING *uis) = NULL; in ui_write()
67 && UI_get0_user_data(ui)) { in ui_write()
73 ((PW_CB_DATA *)UI_get0_user_data(ui))->password; in ui_write()
89 return writer(ui, uis); in ui_write()
93 static int ui_close(UI *ui) in ui_close() argument
95 int (*closer)(UI *ui) = UI_method_get_closer(ui_base_method); in ui_close()
98 return closer(ui); in ui_close()
103 static char *ui_prompt_construct(UI *ui, const char *phrase_desc, in ui_prompt_construct() argument
106 PW_CB_DATA *cb_data = (PW_CB_DATA *)UI_get0_user_data(ui); in ui_prompt_construct()
167 UI *ui; in password_callback() local
174 if ((ui = UI_new_method(ui_method)) == NULL) in password_callback()
179 prompt = UI_construct_prompt(ui, "pass phrase", prompt_info); in password_callback()
182 UI_free(ui); in password_callback()
187 UI_ctrl(ui, UI_CTRL_PRINT_ERRORS, 1, 0, 0); in password_callback()
190 (void)UI_add_user_data(ui, cb_data); in password_callback()
192 ok = UI_add_input_string(ui, prompt, ui_flags, buf, in password_callback()
197 ok = UI_add_verify_string(ui, prompt, ui_flags, buff, in password_callback()
202 ok = UI_process(ui); in password_callback()
203 } while (ok < 0 && UI_ctrl(ui, UI_CTRL_IS_REDOABLE, 0, 0, 0)); in password_callback()
220 UI_free(ui); in password_callback()