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.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c
index a9b22e2e57..e8b841eb0d 100644
--- a/src/lib/libcrypto/ui/ui_err.c
+++ b/src/lib/libcrypto/ui/ui_err.c
@@ -68,8 +68,7 @@
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{
73 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, 72 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"},
74 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, 73 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"},
75 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, 74 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"},
@@ -85,8 +84,7 @@ static ERR_STRING_DATA UI_str_functs[] =
85 {0, NULL} 84 {0, NULL}
86}; 85};
87 86
88static ERR_STRING_DATA UI_str_reasons[] = 87static ERR_STRING_DATA UI_str_reasons[] = {
89{
90 {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS), "common ok and cancel characters"}, 88 {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"}, 89 {ERR_REASON(UI_R_INDEX_TOO_LARGE), "index too large"},
92 {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"}, 90 {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"},
@@ -99,11 +97,10 @@ static ERR_STRING_DATA UI_str_reasons[] =
99 97
100#endif 98#endif
101 99
102void 100void
103ERR_load_UI_strings(void) 101ERR_load_UI_strings(void)
104{ 102{
105#ifndef OPENSSL_NO_ERR 103#ifndef OPENSSL_NO_ERR
106
107 if (ERR_func_error_string(UI_str_functs[0].error) == NULL) { 104 if (ERR_func_error_string(UI_str_functs[0].error) == NULL) {
108 ERR_load_strings(0, UI_str_functs); 105 ERR_load_strings(0, UI_str_functs);
109 ERR_load_strings(0, UI_str_reasons); 106 ERR_load_strings(0, UI_str_reasons);