Lines Matching refs:NULL

20     return UI_new_method(NULL);  in UI_new()
27 if (ret == NULL) in UI_new_method()
28 return NULL; in UI_new_method()
31 if (ret->lock == NULL) { in UI_new_method()
34 return NULL; in UI_new_method()
37 if (method == NULL) in UI_new_method()
39 if (method == NULL) in UI_new_method()
45 return NULL; in UI_new_method()
73 if (ui == NULL) in UI_free()
86 if (ui->strings == NULL) { in allocate_string_stack()
88 if (ui->strings == NULL) { in allocate_string_stack()
100 UI_STRING *ret = NULL; in general_allocate_prompt()
102 if (prompt == NULL) { in general_allocate_prompt()
105 || type == UIT_BOOLEAN) && result_buf == NULL) { in general_allocate_prompt()
107 } else if ((ret = OPENSSL_zalloc(sizeof(*ret))) != NULL) { in general_allocate_prompt()
127 if (s != NULL) { in general_allocate_string()
157 if (ok_chars == NULL) { in general_allocate_boolean()
159 } else if (cancel_chars == NULL) { in general_allocate_boolean()
163 if (strchr(cancel_chars, *p) != NULL) { in general_allocate_boolean()
171 if (s != NULL) { in general_allocate_boolean()
200 maxsize, NULL); in UI_add_input_string()
207 char *prompt_copy = NULL; in UI_dup_input_string()
209 if (prompt != NULL) { in UI_dup_input_string()
211 if (prompt_copy == NULL) in UI_dup_input_string()
217 maxsize, NULL); in UI_dup_input_string()
233 char *prompt_copy = NULL; in UI_dup_verify_string()
235 if (prompt != NULL) { in UI_dup_verify_string()
237 if (prompt_copy == NULL) in UI_dup_verify_string()
259 char *prompt_copy = NULL; in UI_dup_input_boolean()
260 char *action_desc_copy = NULL; in UI_dup_input_boolean()
261 char *ok_chars_copy = NULL; in UI_dup_input_boolean()
262 char *cancel_chars_copy = NULL; in UI_dup_input_boolean()
264 if (prompt != NULL) { in UI_dup_input_boolean()
266 if (prompt_copy == NULL) in UI_dup_input_boolean()
270 if (action_desc != NULL) { in UI_dup_input_boolean()
272 if (action_desc_copy == NULL) in UI_dup_input_boolean()
276 if (ok_chars != NULL) { in UI_dup_input_boolean()
278 if (ok_chars_copy == NULL) in UI_dup_input_boolean()
282 if (cancel_chars != NULL) { in UI_dup_input_boolean()
284 if (cancel_chars_copy == NULL) in UI_dup_input_boolean()
301 return general_allocate_string(ui, text, 0, UIT_INFO, 0, NULL, 0, 0, in UI_add_info_string()
302 NULL); in UI_add_info_string()
307 char *text_copy = NULL; in UI_dup_info_string()
309 if (text != NULL) { in UI_dup_info_string()
311 if (text_copy == NULL) in UI_dup_info_string()
315 return general_allocate_string(ui, text_copy, 1, UIT_INFO, 0, NULL, in UI_dup_info_string()
316 0, 0, NULL); in UI_dup_info_string()
321 return general_allocate_string(ui, text, 0, UIT_ERROR, 0, NULL, 0, 0, in UI_add_error_string()
322 NULL); in UI_add_error_string()
327 char *text_copy = NULL; in UI_dup_error_string()
329 if (text != NULL) { in UI_dup_error_string()
331 if (text_copy == NULL) in UI_dup_error_string()
334 return general_allocate_string(ui, text_copy, 1, UIT_ERROR, 0, NULL, in UI_dup_error_string()
335 0, 0, NULL); in UI_dup_error_string()
341 char *prompt = NULL; in UI_construct_prompt()
343 if (ui != NULL && ui->meth != NULL && ui->meth->ui_construct_prompt != NULL) in UI_construct_prompt()
351 if (phrase_desc == NULL) in UI_construct_prompt()
352 return NULL; in UI_construct_prompt()
354 if (object_name != NULL) in UI_construct_prompt()
358 if ((prompt = OPENSSL_malloc(len + 1)) == NULL) in UI_construct_prompt()
359 return NULL; in UI_construct_prompt()
362 if (object_name != NULL) { in UI_construct_prompt()
377 old_data = NULL; in UI_add_user_data()
386 void *duplicate = NULL; in UI_dup_user_data()
388 if (ui->meth->ui_duplicate_data == NULL in UI_dup_user_data()
389 || ui->meth->ui_destroy_data == NULL) { in UI_dup_user_data()
395 if (duplicate == NULL) { in UI_dup_user_data()
415 return NULL; in UI_get0_result()
419 return NULL; in UI_get0_result()
445 if (ui->meth->ui_write_string != NULL in print_error()
456 if (ui->meth->ui_open_session != NULL in UI_process()
468 if (ui->meth->ui_write_string != NULL in UI_process()
479 if (ui->meth->ui_flush != NULL) in UI_process()
495 if (ui->meth->ui_read_string != NULL) { in UI_process()
518 state = NULL; in UI_process()
520 if (ui->meth->ui_close_session != NULL in UI_process()
522 if (state == NULL) in UI_process()
534 if (ui == NULL) { in UI_ctrl()
580 UI_METHOD *ui_method = NULL; in UI_create_method()
582 if ((ui_method = OPENSSL_zalloc(sizeof(*ui_method))) == NULL in UI_create_method()
583 || (ui_method->name = OPENSSL_strdup(name)) == NULL in UI_create_method()
587 if (ui_method != NULL) { in UI_create_method()
588 if (ui_method->name != NULL) in UI_create_method()
597 return NULL; in UI_create_method()
609 if (ui_method == NULL) in UI_destroy_method()
614 ui_method->name = NULL; in UI_destroy_method()
620 if (method != NULL) { in UI_method_set_opener()
630 if (method != NULL) { in UI_method_set_writer()
639 if (method != NULL) { in UI_method_set_flusher()
649 if (method != NULL) { in UI_method_set_reader()
658 if (method != NULL) { in UI_method_set_closer()
669 if (method != NULL) { in UI_method_set_data_duplicator()
682 if (method != NULL) { in UI_method_set_prompt_constructor()
696 if (method != NULL) in UI_method_get_opener()
698 return NULL; in UI_method_get_opener()
703 if (method != NULL) in UI_method_get_writer()
705 return NULL; in UI_method_get_writer()
710 if (method != NULL) in UI_method_get_flusher()
712 return NULL; in UI_method_get_flusher()
717 if (method != NULL) in UI_method_get_reader()
719 return NULL; in UI_method_get_reader()
724 if (method != NULL) in UI_method_get_closer()
726 return NULL; in UI_method_get_closer()
732 if (method != NULL) in UI_method_get_prompt_constructor()
734 return NULL; in UI_method_get_prompt_constructor()
739 if (method != NULL) in UI_method_get_data_duplicator()
741 return NULL; in UI_method_get_data_duplicator()
746 if (method != NULL) in UI_method_get_data_destructor()
748 return NULL; in UI_method_get_data_destructor()
783 return NULL; in UI_get0_action_string()
798 return NULL; in UI_get0_result_string()
828 return NULL; in UI_get0_test_string()
890 if (uis->result_buf == NULL) { in UI_set_result_ex()
904 if (uis->result_buf == NULL) { in UI_set_result_ex()