| Absolute File Name: | /home/opencoverage/opencoverage/guest-scripts/openssl/src/include/openssl/ui.h |
| Switch to Source code | Preprocessed file |
| Line | Source | Count |
|---|---|---|
| 1 | - | |
| 2 | - | |
| 3 | - | |
| 4 | - | |
| 5 | - | |
| 6 | - | |
| 7 | UI *UI_new(void); | - |
| 8 | UI *UI_new_method(const UI_METHOD *method); | - |
| 9 | void UI_free(UI *ui); | - |
| 10 | int UI_add_input_string(UI *ui, const char *prompt, int flags, | - |
| 11 | char *result_buf, int minsize, int maxsize); | - |
| 12 | int UI_dup_input_string(UI *ui, const char *prompt, int flags, | - |
| 13 | char *result_buf, int minsize, int maxsize); | - |
| 14 | int UI_add_verify_string(UI *ui, const char *prompt, int flags, | - |
| 15 | char *result_buf, int minsize, int maxsize, | - |
| 16 | const char *test_buf); | - |
| 17 | int UI_dup_verify_string(UI *ui, const char *prompt, int flags, | - |
| 18 | char *result_buf, int minsize, int maxsize, | - |
| 19 | const char *test_buf); | - |
| 20 | int UI_add_input_boolean(UI *ui, const char *prompt, const char *action_desc, | - |
| 21 | const char *ok_chars, const char *cancel_chars, | - |
| 22 | int flags, char *result_buf); | - |
| 23 | int UI_dup_input_boolean(UI *ui, const char *prompt, const char *action_desc, | - |
| 24 | const char *ok_chars, const char *cancel_chars, | - |
| 25 | int flags, char *result_buf); | - |
| 26 | int UI_add_info_string(UI *ui, const char *text); | - |
| 27 | int UI_dup_info_string(UI *ui, const char *text); | - |
| 28 | int UI_add_error_string(UI *ui, const char *text); | - |
| 29 | int UI_dup_error_string(UI *ui, const char *text); | - |
| 30 | char *UI_construct_prompt(UI *ui_method, | - |
| 31 | const char *object_desc, const char *object_name); | - |
| 32 | void *UI_add_user_data(UI *ui, void *user_data); | - |
| 33 | - | |
| 34 | - | |
| 35 | - | |
| 36 | - | |
| 37 | - | |
| 38 | int UI_dup_user_data(UI *ui, void *user_data); | - |
| 39 | - | |
| 40 | void *UI_get0_user_data(UI *ui); | - |
| 41 | - | |
| 42 | - | |
| 43 | const char *UI_get0_result(UI *ui, int i); | - |
| 44 | int UI_get_result_length(UI *ui, int i); | - |
| 45 | - | |
| 46 | - | |
| 47 | int UI_process(UI *ui); | - |
| 48 | - | |
| 49 | - | |
| 50 | - | |
| 51 | - | |
| 52 | - | |
| 53 | - | |
| 54 | int UI_ctrl(UI *ui, int cmd, long i, void *p, void (*f) (void)); | - |
| 55 | int UI_set_ex_data(UI *r, int idx, void *arg); | - |
| 56 | void *UI_get_ex_data(UI *r, int idx); | - |
| 57 | - | |
| 58 | - | |
| 59 | void UI_set_default_method(const UI_METHOD *meth); | - |
| 60 | const UI_METHOD *UI_get_default_method(void); | - |
| 61 | const UI_METHOD *UI_get_method(UI *ui); | - |
| 62 | const UI_METHOD *UI_set_method(UI *ui, const UI_METHOD *meth); | - |
| 63 | - | |
| 64 | - | |
| 65 | - | |
| 66 | - | |
| 67 | UI_METHOD *UI_OpenSSL(void); | - |
| 68 | - | |
| 69 | - | |
| 70 | - | |
| 71 | - | |
| 72 | - | |
| 73 | - | |
| 74 | - | |
| 75 | const UI_METHOD *UI_null(void); | - |
| 76 | typedef struct ui_string_st UI_STRING; | - |
| 77 | struct stack_st_UI_STRING; typedef int (*sk_UI_STRING_compfunc)(const UI_STRING * const *a, const UI_STRING *const *b); typedef void (*sk_UI_STRING_freefunc)(UI_STRING *a); typedef UI_STRING * (*sk_UI_STRING_copyfunc)(const UI_STRING *a); static inline int sk_UI_STRING_num(const struct stack_st_UI_STRING *sk) { return executed 20 times by 1 test: OPENSSL_sk_num((const OPENSSL_STACK *)sk);return OPENSSL_sk_num((const OPENSSL_STACK *)sk);Executed by:
executed 20 times by 1 test: } static inline UI_STRING *sk_UI_STRING_value(const struct stack_st_UI_STRING *sk, int idx) { returnreturn OPENSSL_sk_num((const OPENSSL_STACK *)sk);Executed by:
executed 10 times by 1 test: (UI_STRING *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);return (UI_STRING *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);Executed by:
executed 10 times by 1 test: } static inline struct stack_st_UI_STRING *sk_UI_STRING_new(sk_UI_STRING_compfunc compare) { returnreturn (UI_STRING *)OPENSSL_sk_value((const OPENSSL_STACK *)sk, idx);Executed by:
never executed: (struct stack_st_UI_STRING *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);return (struct stack_st_UI_STRING *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);never executed: } static inline struct stack_st_UI_STRING *sk_UI_STRING_new_null(void) { returnreturn (struct stack_st_UI_STRING *)OPENSSL_sk_new((OPENSSL_sk_compfunc)compare);executed 5 times by 1 test: (struct stack_st_UI_STRING *)OPENSSL_sk_new_null();return (struct stack_st_UI_STRING *)OPENSSL_sk_new_null();Executed by:
executed 5 times by 1 test: } static inline struct stack_st_UI_STRING *sk_UI_STRING_new_reserve(sk_UI_STRING_compfunc compare, int n) { returnreturn (struct stack_st_UI_STRING *)OPENSSL_sk_new_null();Executed by:
never executed: (struct stack_st_UI_STRING *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);return (struct stack_st_UI_STRING *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);never executed: } static inline int sk_UI_STRING_reserve(struct stack_st_UI_STRING *sk, int n) { returnreturn (struct stack_st_UI_STRING *)OPENSSL_sk_new_reserve((OPENSSL_sk_compfunc)compare, n);never executed: OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);never executed: } static inline void sk_UI_STRING_free(struct stack_st_UI_STRING *sk) { OPENSSL_sk_free((OPENSSL_STACK *)sk); }return OPENSSL_sk_reserve((OPENSSL_STACK *)sk, n);never executed: static inline void sk_UI_STRING_zero(struct stack_st_UI_STRING *sk) { OPENSSL_sk_zero((OPENSSL_STACK *)sk); }end of blocknever executed: static inline UI_STRING *sk_UI_STRING_delete(struct stack_st_UI_STRING *sk, int i) { returnend of blocknever executed: (UI_STRING *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);return (UI_STRING *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);never executed: } static inline UI_STRING *sk_UI_STRING_delete_ptr(struct stack_st_UI_STRING *sk, UI_STRING *ptr) { returnreturn (UI_STRING *)OPENSSL_sk_delete((OPENSSL_STACK *)sk, i);never executed: (UI_STRING *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);return (UI_STRING *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);never executed: } static inline int sk_UI_STRING_push(struct stack_st_UI_STRING *sk, UI_STRING *ptr) { returnreturn (UI_STRING *)OPENSSL_sk_delete_ptr((OPENSSL_STACK *)sk, (const void *)ptr);executed 5 times by 1 test: OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);Executed by:
executed 5 times by 1 test: } static inline int sk_UI_STRING_unshift(struct stack_st_UI_STRING *sk, UI_STRING *ptr) { returnreturn OPENSSL_sk_push((OPENSSL_STACK *)sk, (const void *)ptr);Executed by:
never executed: OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);never executed: } static inline UI_STRING *sk_UI_STRING_pop(struct stack_st_UI_STRING *sk) { returnreturn OPENSSL_sk_unshift((OPENSSL_STACK *)sk, (const void *)ptr);never executed: (UI_STRING *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);return (UI_STRING *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);never executed: } static inline UI_STRING *sk_UI_STRING_shift(struct stack_st_UI_STRING *sk) { returnreturn (UI_STRING *)OPENSSL_sk_pop((OPENSSL_STACK *)sk);never executed: (UI_STRING *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);return (UI_STRING *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);never executed: } static inline void sk_UI_STRING_pop_free(struct stack_st_UI_STRING *sk, sk_UI_STRING_freefunc freefunc) { OPENSSL_sk_pop_free((OPENSSL_STACK *)sk, (OPENSSL_sk_freefunc)freefunc); }return (UI_STRING *)OPENSSL_sk_shift((OPENSSL_STACK *)sk);executed 5 times by 1 test: static inline int sk_UI_STRING_insert(struct stack_st_UI_STRING *sk, UI_STRING *ptr, int idx) { returnend of blockExecuted by:
never executed: OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);return OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);never executed: } static inline UI_STRING *sk_UI_STRING_set(struct stack_st_UI_STRING *sk, int idx, UI_STRING *ptr) { returnreturn OPENSSL_sk_insert((OPENSSL_STACK *)sk, (const void *)ptr, idx);never executed: (UI_STRING *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);return (UI_STRING *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);never executed: } static inline int sk_UI_STRING_find(struct stack_st_UI_STRING *sk, UI_STRING *ptr) { returnreturn (UI_STRING *)OPENSSL_sk_set((OPENSSL_STACK *)sk, idx, (const void *)ptr);never executed: OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);never executed: } static inline int sk_UI_STRING_find_ex(struct stack_st_UI_STRING *sk, UI_STRING *ptr) { returnreturn OPENSSL_sk_find((OPENSSL_STACK *)sk, (const void *)ptr);never executed: OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);never executed: } static inline void sk_UI_STRING_sort(struct stack_st_UI_STRING *sk) { OPENSSL_sk_sort((OPENSSL_STACK *)sk); }return OPENSSL_sk_find_ex((OPENSSL_STACK *)sk, (const void *)ptr);never executed: static inline int sk_UI_STRING_is_sorted(const struct stack_st_UI_STRING *sk) { returnend of blocknever executed: OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);return OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);never executed: } static inline struct stack_st_UI_STRING * sk_UI_STRING_dup(const struct stack_st_UI_STRING *sk) { returnreturn OPENSSL_sk_is_sorted((const OPENSSL_STACK *)sk);never executed: (struct stack_st_UI_STRING *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);return (struct stack_st_UI_STRING *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);never executed: } static inline struct stack_st_UI_STRING *sk_UI_STRING_deep_copy(const struct stack_st_UI_STRING *sk, sk_UI_STRING_copyfunc copyfunc, sk_UI_STRING_freefunc freefunc) { returnreturn (struct stack_st_UI_STRING *)OPENSSL_sk_dup((const OPENSSL_STACK *)sk);never executed: (struct stack_st_UI_STRING *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);return (struct stack_st_UI_STRING *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);never executed: } static inline sk_UI_STRING_compfunc sk_UI_STRING_set_cmp_func(struct stack_st_UI_STRING *sk, sk_UI_STRING_compfunc compare) { returnreturn (struct stack_st_UI_STRING *)OPENSSL_sk_deep_copy((const OPENSSL_STACK *)sk, (OPENSSL_sk_copyfunc)copyfunc, (OPENSSL_sk_freefunc)freefunc);never executed: (sk_UI_STRING_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);return (sk_UI_STRING_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare);never executed: }return (sk_UI_STRING_compfunc)OPENSSL_sk_set_cmp_func((OPENSSL_STACK *)sk, (OPENSSL_sk_compfunc)compare); | 0-20 |
| 78 | - | |
| 79 | - | |
| 80 | - | |
| 81 | - | |
| 82 | - | |
| 83 | enum UI_string_types { | - |
| 84 | UIT_NONE = 0, | - |
| 85 | UIT_PROMPT, | - |
| 86 | UIT_VERIFY, | - |
| 87 | UIT_BOOLEAN, | - |
| 88 | UIT_INFO, | - |
| 89 | UIT_ERROR | - |
| 90 | }; | - |
| 91 | - | |
| 92 | - | |
| 93 | UI_METHOD *UI_create_method(const char *name); | - |
| 94 | void UI_destroy_method(UI_METHOD *ui_method); | - |
| 95 | int UI_method_set_opener(UI_METHOD *method, int (*opener) (UI *ui)); | - |
| 96 | int UI_method_set_writer(UI_METHOD *method, | - |
| 97 | int (*writer) (UI *ui, UI_STRING *uis)); | - |
| 98 | int UI_method_set_flusher(UI_METHOD *method, int (*flusher) (UI *ui)); | - |
| 99 | int UI_method_set_reader(UI_METHOD *method, | - |
| 100 | int (*reader) (UI *ui, UI_STRING *uis)); | - |
| 101 | int UI_method_set_closer(UI_METHOD *method, int (*closer) (UI *ui)); | - |
| 102 | int UI_method_set_data_duplicator(UI_METHOD *method, | - |
| 103 | void *(*duplicator) (UI *ui, void *ui_data), | - |
| 104 | void (*destructor)(UI *ui, void *ui_data)); | - |
| 105 | int UI_method_set_prompt_constructor(UI_METHOD *method, | - |
| 106 | char *(*prompt_constructor) (UI *ui, | - |
| 107 | const char | - |
| 108 | *object_desc, | - |
| 109 | const char | - |
| 110 | *object_name)); | - |
| 111 | int UI_method_set_ex_data(UI_METHOD *method, int idx, void *data); | - |
| 112 | int (*UI_method_get_opener(const UI_METHOD *method)) (UI *); | - |
| 113 | int (*UI_method_get_writer(const UI_METHOD *method)) (UI *, UI_STRING *); | - |
| 114 | int (*UI_method_get_flusher(const UI_METHOD *method)) (UI *); | - |
| 115 | int (*UI_method_get_reader(const UI_METHOD *method)) (UI *, UI_STRING *); | - |
| 116 | int (*UI_method_get_closer(const UI_METHOD *method)) (UI *); | - |
| 117 | char *(*UI_method_get_prompt_constructor(const UI_METHOD *method)) | - |
| 118 | (UI *, const char *, const char *); | - |
| 119 | void *(*UI_method_get_data_duplicator(const UI_METHOD *method)) (UI *, void *); | - |
| 120 | void (*UI_method_get_data_destructor(const UI_METHOD *method)) (UI *, void *); | - |
| 121 | const void *UI_method_get_ex_data(const UI_METHOD *method, int idx); | - |
| 122 | - | |
| 123 | - | |
| 124 | - | |
| 125 | - | |
| 126 | - | |
| 127 | - | |
| 128 | - | |
| 129 | enum UI_string_types UI_get_string_type(UI_STRING *uis); | - |
| 130 | - | |
| 131 | int UI_get_input_flags(UI_STRING *uis); | - |
| 132 | - | |
| 133 | const char *UI_get0_output_string(UI_STRING *uis); | - |
| 134 | - | |
| 135 | - | |
| 136 | - | |
| 137 | - | |
| 138 | const char *UI_get0_action_string(UI_STRING *uis); | - |
| 139 | - | |
| 140 | const char *UI_get0_result_string(UI_STRING *uis); | - |
| 141 | int UI_get_result_string_length(UI_STRING *uis); | - |
| 142 | - | |
| 143 | - | |
| 144 | - | |
| 145 | const char *UI_get0_test_string(UI_STRING *uis); | - |
| 146 | - | |
| 147 | int UI_get_result_minsize(UI_STRING *uis); | - |
| 148 | - | |
| 149 | int UI_get_result_maxsize(UI_STRING *uis); | - |
| 150 | - | |
| 151 | int UI_set_result(UI *ui, UI_STRING *uis, const char *result); | - |
| 152 | int UI_set_result_ex(UI *ui, UI_STRING *uis, const char *result, int len); | - |
| 153 | - | |
| 154 | - | |
| 155 | int UI_UTIL_read_pw_string(char *buf, int length, const char *prompt, | - |
| 156 | int verify); | - |
| 157 | int UI_UTIL_read_pw(char *buf, char *buff, int size, const char *prompt, | - |
| 158 | int verify); | - |
| 159 | UI_METHOD *UI_UTIL_wrap_read_pem_callback(pem_password_cb *cb, int rwflag); | - |
| Switch to Source code | Preprocessed file |