• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src/router/openssl/crypto/ui/

Lines Matching refs:uis

98 static void free_string(UI_STRING *uis)
100 if (uis->flags & OUT_STRING_FREEABLE) {
101 OPENSSL_free((char *)uis->out_string);
102 switch (uis->type) {
104 OPENSSL_free((char *)uis->_.boolean_data.action_desc);
105 OPENSSL_free((char *)uis->_.boolean_data.ok_chars);
106 OPENSSL_free((char *)uis->_.boolean_data.cancel_chars);
112 OPENSSL_free(uis);
454 UI_STRING uis;
456 memset(&uis, 0, sizeof(uis));
457 uis.type = UIT_ERROR;
458 uis.out_string = str;
460 if (ui->meth->ui_write_string && !ui->meth->ui_write_string(ui, &uis))
621 int (*writer) (UI *ui, UI_STRING *uis))
640 int (*reader) (UI *ui, UI_STRING *uis))
716 enum UI_string_types UI_get_string_type(UI_STRING *uis)
718 if (!uis)
720 return uis->type;
723 int UI_get_input_flags(UI_STRING *uis)
725 if (!uis)
727 return uis->input_flags;
730 const char *UI_get0_output_string(UI_STRING *uis)
732 if (!uis)
734 return uis->out_string;
737 const char *UI_get0_action_string(UI_STRING *uis)
739 if (!uis)
741 switch (uis->type) {
744 return uis->_.boolean_data.action_desc;
750 const char *UI_get0_result_string(UI_STRING *uis)
752 if (!uis)
754 switch (uis->type) {
757 return uis->result_buf;
763 const char *UI_get0_test_string(UI_STRING *uis)
765 if (!uis)
767 switch (uis->type) {
769 return uis->_.string_data.test_buf;
775 int UI_get_result_minsize(UI_STRING *uis)
777 if (!uis)
779 switch (uis->type) {
782 return uis->_.string_data.result_minsize;
788 int UI_get_result_maxsize(UI_STRING *uis)
790 if (!uis)
792 switch (uis->type) {
795 return uis->_.string_data.result_maxsize;
801 int UI_set_result(UI *ui, UI_STRING *uis, const char *result)
807 if (!uis)
809 switch (uis->type) {
813 char number1[DECIMAL_SIZE(uis->_.string_data.result_minsize) + 1];
814 char number2[DECIMAL_SIZE(uis->_.string_data.result_maxsize) + 1];
817 uis->_.string_data.result_minsize);
819 uis->_.string_data.result_maxsize);
821 if (l < uis->_.string_data.result_minsize) {
828 if (l > uis->_.string_data.result_maxsize) {
837 if (!uis->result_buf) {
842 BUF_strlcpy(uis->result_buf, result,
843 uis->_.string_data.result_maxsize + 1);
849 if (!uis->result_buf) {
854 uis->result_buf[0] = '\0';
856 if (strchr(uis->_.boolean_data.ok_chars, *p)) {
857 uis->result_buf[0] = uis->_.boolean_data.ok_chars[0];
860 if (strchr(uis->_.boolean_data.cancel_chars, *p)) {
861 uis->result_buf[0] = uis->_.boolean_data.cancel_chars[0];