summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/ui/ui_err.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
-rw-r--r--src/lib/libcrypto/ui/ui_err.c72
1 files changed, 36 insertions, 36 deletions
diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c
index a6b96299a0..a9b22e2e57 100644
--- a/src/lib/libcrypto/ui/ui_err.c
+++ b/src/lib/libcrypto/ui/ui_err.c
@@ -7,7 +7,7 @@
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
11 * 11 *
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in 13 * notice, this list of conditions and the following disclaimer in
@@ -68,45 +68,45 @@
68#define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0) 68#define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0)
69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason) 69#define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason)
70 70
71static ERR_STRING_DATA UI_str_functs[]= 71static ERR_STRING_DATA UI_str_functs[] =
72 { 72{
73{ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, 73 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"},
74{ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, 74 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"},
75{ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, 75 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"},
76{ERR_FUNC(UI_F_UI_CTRL), "UI_ctrl"}, 76 {ERR_FUNC(UI_F_UI_CTRL), "UI_ctrl"},
77{ERR_FUNC(UI_F_UI_DUP_ERROR_STRING), "UI_dup_error_string"}, 77 {ERR_FUNC(UI_F_UI_DUP_ERROR_STRING), "UI_dup_error_string"},
78{ERR_FUNC(UI_F_UI_DUP_INFO_STRING), "UI_dup_info_string"}, 78 {ERR_FUNC(UI_F_UI_DUP_INFO_STRING), "UI_dup_info_string"},
79{ERR_FUNC(UI_F_UI_DUP_INPUT_BOOLEAN), "UI_dup_input_boolean"}, 79 {ERR_FUNC(UI_F_UI_DUP_INPUT_BOOLEAN), "UI_dup_input_boolean"},
80{ERR_FUNC(UI_F_UI_DUP_INPUT_STRING), "UI_dup_input_string"}, 80 {ERR_FUNC(UI_F_UI_DUP_INPUT_STRING), "UI_dup_input_string"},
81{ERR_FUNC(UI_F_UI_DUP_VERIFY_STRING), "UI_dup_verify_string"}, 81 {ERR_FUNC(UI_F_UI_DUP_VERIFY_STRING), "UI_dup_verify_string"},
82{ERR_FUNC(UI_F_UI_GET0_RESULT), "UI_get0_result"}, 82 {ERR_FUNC(UI_F_UI_GET0_RESULT), "UI_get0_result"},
83{ERR_FUNC(UI_F_UI_NEW_METHOD), "UI_new_method"}, 83 {ERR_FUNC(UI_F_UI_NEW_METHOD), "UI_new_method"},
84{ERR_FUNC(UI_F_UI_SET_RESULT), "UI_set_result"}, 84 {ERR_FUNC(UI_F_UI_SET_RESULT), "UI_set_result"},
85{0,NULL} 85 {0, NULL}
86 }; 86};
87 87
88static ERR_STRING_DATA UI_str_reasons[]= 88static ERR_STRING_DATA UI_str_reasons[] =
89 { 89{
90{ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS),"common ok and cancel characters"}, 90 {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS), "common ok and cancel characters"},
91{ERR_REASON(UI_R_INDEX_TOO_LARGE) ,"index too large"}, 91 {ERR_REASON(UI_R_INDEX_TOO_LARGE), "index too large"},
92{ERR_REASON(UI_R_INDEX_TOO_SMALL) ,"index too small"}, 92 {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"},
93{ERR_REASON(UI_R_NO_RESULT_BUFFER) ,"no result buffer"}, 93 {ERR_REASON(UI_R_NO_RESULT_BUFFER), "no result buffer"},
94{ERR_REASON(UI_R_RESULT_TOO_LARGE) ,"result too large"}, 94 {ERR_REASON(UI_R_RESULT_TOO_LARGE), "result too large"},
95{ERR_REASON(UI_R_RESULT_TOO_SMALL) ,"result too small"}, 95 {ERR_REASON(UI_R_RESULT_TOO_SMALL), "result too small"},
96{ERR_REASON(UI_R_UNKNOWN_CONTROL_COMMAND),"unknown control command"}, 96 {ERR_REASON(UI_R_UNKNOWN_CONTROL_COMMAND), "unknown control command"},
97{0,NULL} 97 {0, NULL}
98 }; 98};
99 99
100#endif 100#endif
101 101
102void ERR_load_UI_strings(void) 102void
103 { 103ERR_load_UI_strings(void)
104{
104#ifndef OPENSSL_NO_ERR 105#ifndef OPENSSL_NO_ERR
105 106
106 if (ERR_func_error_string(UI_str_functs[0].error) == NULL) 107 if (ERR_func_error_string(UI_str_functs[0].error) == NULL) {
107 { 108 ERR_load_strings(0, UI_str_functs);
108 ERR_load_strings(0,UI_str_functs); 109 ERR_load_strings(0, UI_str_reasons);
109 ERR_load_strings(0,UI_str_reasons);
110 }
111#endif
112 } 110 }
111#endif
112}