Lines Matching refs:method
23 UI *UI_new_method(const UI_METHOD *method) in UI_new_method() argument
37 if (method == NULL) in UI_new_method()
38 method = UI_get_default_method(); in UI_new_method()
39 if (method == NULL) in UI_new_method()
40 method = UI_null(); in UI_new_method()
41 ret->meth = method; in UI_new_method()
642 int UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui)) in UI_method_set_opener() argument
644 if (method != NULL) { in UI_method_set_opener()
645 method->ui_open_session = opener; in UI_method_set_opener()
651 int UI_method_set_writer(UI_METHOD *method, in UI_method_set_writer() argument
654 if (method != NULL) { in UI_method_set_writer()
655 method->ui_write_string = writer; in UI_method_set_writer()
661 int UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui)) in UI_method_set_flusher() argument
663 if (method != NULL) { in UI_method_set_flusher()
664 method->ui_flush = flusher; in UI_method_set_flusher()
670 int UI_method_set_reader(UI_METHOD *method, in UI_method_set_reader() argument
673 if (method != NULL) { in UI_method_set_reader()
674 method->ui_read_string = reader; in UI_method_set_reader()
680 int UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui)) in UI_method_set_closer() argument
682 if (method != NULL) { in UI_method_set_closer()
683 method->ui_close_session = closer; in UI_method_set_closer()
689 int UI_method_set_data_duplicator(UI_METHOD *method, in UI_method_set_data_duplicator() argument
693 if (method != NULL) { in UI_method_set_data_duplicator()
694 method->ui_duplicate_data = duplicator; in UI_method_set_data_duplicator()
695 method->ui_destroy_data = destructor; in UI_method_set_data_duplicator()
701 int UI_method_set_prompt_constructor(UI_METHOD *method, in UI_method_set_prompt_constructor() argument
706 if (method != NULL) { in UI_method_set_prompt_constructor()
707 method->ui_construct_prompt = prompt_constructor; in UI_method_set_prompt_constructor()
713 int UI_method_set_ex_data(UI_METHOD *method, int idx, void *data) in UI_method_set_ex_data() argument
715 return CRYPTO_set_ex_data(&method->ex_data, idx, data); in UI_method_set_ex_data()
718 int (*UI_method_get_opener(const UI_METHOD *method)) (UI *) in UI_method_get_opener() argument
720 if (method != NULL) in UI_method_get_opener()
721 return method->ui_open_session; in UI_method_get_opener()
725 int (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *) in UI_method_get_writer() argument
727 if (method != NULL) in UI_method_get_writer()
728 return method->ui_write_string; in UI_method_get_writer()
732 int (*UI_method_get_flusher(const UI_METHOD *method)) (UI *) in UI_method_get_flusher() argument
734 if (method != NULL) in UI_method_get_flusher()
735 return method->ui_flush; in UI_method_get_flusher()
739 int (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *) in UI_method_get_reader() argument
741 if (method != NULL) in UI_method_get_reader()
742 return method->ui_read_string; in UI_method_get_reader()
746 int (*UI_method_get_closer(const UI_METHOD *method)) (UI *) in UI_method_get_closer() argument
748 if (method != NULL) in UI_method_get_closer()
749 return method->ui_close_session; in UI_method_get_closer()
753 char *(*UI_method_get_prompt_constructor(const UI_METHOD *method)) in UI_method_get_prompt_constructor() argument
756 if (method != NULL) in UI_method_get_prompt_constructor()
757 return method->ui_construct_prompt; in UI_method_get_prompt_constructor()
761 void *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *) in UI_method_get_data_duplicator() argument
763 if (method != NULL) in UI_method_get_data_duplicator()
764 return method->ui_duplicate_data; in UI_method_get_data_duplicator()
768 void (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *) in UI_method_get_data_destructor() argument
770 if (method != NULL) in UI_method_get_data_destructor()
771 return method->ui_destroy_data; in UI_method_get_data_destructor()
775 const void *UI_method_get_ex_data(const UI_METHOD *method, int idx) in UI_method_get_ex_data() argument
777 return CRYPTO_get_ex_data(&method->ex_data, idx); in UI_method_get_ex_data()