Lines Matching refs:method
23 UI *UI_new_method(const UI_METHOD *method) in UI_new_method() argument
39 if (method == NULL) in UI_new_method()
40 method = UI_get_default_method(); in UI_new_method()
41 if (method == NULL) in UI_new_method()
42 method = UI_null(); in UI_new_method()
43 ret->meth = method; in UI_new_method()
627 int UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui)) in UI_method_set_opener() argument
629 if (method != NULL) { in UI_method_set_opener()
630 method->ui_open_session = opener; in UI_method_set_opener()
636 int UI_method_set_writer(UI_METHOD *method, in UI_method_set_writer() argument
639 if (method != NULL) { in UI_method_set_writer()
640 method->ui_write_string = writer; in UI_method_set_writer()
646 int UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui)) in UI_method_set_flusher() argument
648 if (method != NULL) { in UI_method_set_flusher()
649 method->ui_flush = flusher; in UI_method_set_flusher()
655 int UI_method_set_reader(UI_METHOD *method, in UI_method_set_reader() argument
658 if (method != NULL) { in UI_method_set_reader()
659 method->ui_read_string = reader; in UI_method_set_reader()
665 int UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui)) in UI_method_set_closer() argument
667 if (method != NULL) { in UI_method_set_closer()
668 method->ui_close_session = closer; in UI_method_set_closer()
674 int UI_method_set_data_duplicator(UI_METHOD *method, in UI_method_set_data_duplicator() argument
678 if (method != NULL) { in UI_method_set_data_duplicator()
679 method->ui_duplicate_data = duplicator; in UI_method_set_data_duplicator()
680 method->ui_destroy_data = destructor; in UI_method_set_data_duplicator()
686 int UI_method_set_prompt_constructor(UI_METHOD *method, in UI_method_set_prompt_constructor() argument
691 if (method != NULL) { in UI_method_set_prompt_constructor()
692 method->ui_construct_prompt = prompt_constructor; in UI_method_set_prompt_constructor()
698 int UI_method_set_ex_data(UI_METHOD *method, int idx, void *data) in UI_method_set_ex_data() argument
700 return CRYPTO_set_ex_data(&method->ex_data, idx, data); in UI_method_set_ex_data()
703 int (*UI_method_get_opener(const UI_METHOD *method)) (UI *) in UI_method_get_opener() argument
705 if (method != NULL) in UI_method_get_opener()
706 return method->ui_open_session; in UI_method_get_opener()
710 int (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *) in UI_method_get_writer() argument
712 if (method != NULL) in UI_method_get_writer()
713 return method->ui_write_string; in UI_method_get_writer()
717 int (*UI_method_get_flusher(const UI_METHOD *method)) (UI *) in UI_method_get_flusher() argument
719 if (method != NULL) in UI_method_get_flusher()
720 return method->ui_flush; in UI_method_get_flusher()
724 int (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *) in UI_method_get_reader() argument
726 if (method != NULL) in UI_method_get_reader()
727 return method->ui_read_string; in UI_method_get_reader()
731 int (*UI_method_get_closer(const UI_METHOD *method)) (UI *) in UI_method_get_closer() argument
733 if (method != NULL) in UI_method_get_closer()
734 return method->ui_close_session; in UI_method_get_closer()
738 char *(*UI_method_get_prompt_constructor(const UI_METHOD *method)) in UI_method_get_prompt_constructor() argument
741 if (method != NULL) in UI_method_get_prompt_constructor()
742 return method->ui_construct_prompt; in UI_method_get_prompt_constructor()
746 void *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *) in UI_method_get_data_duplicator() argument
748 if (method != NULL) in UI_method_get_data_duplicator()
749 return method->ui_duplicate_data; in UI_method_get_data_duplicator()
753 void (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *) in UI_method_get_data_destructor() argument
755 if (method != NULL) in UI_method_get_data_destructor()
756 return method->ui_destroy_data; in UI_method_get_data_destructor()
760 const void *UI_method_get_ex_data(const UI_METHOD *method, int idx) in UI_method_get_ex_data() argument
762 return CRYPTO_get_ex_data(&method->ex_data, idx); in UI_method_get_ex_data()