diff options
Diffstat (limited to 'src/lib/libcrypto/ui/ui_err.c')
-rw-r--r-- | src/lib/libcrypto/ui/ui_err.c | 48 |
1 files changed, 22 insertions, 26 deletions
diff --git a/src/lib/libcrypto/ui/ui_err.c b/src/lib/libcrypto/ui/ui_err.c index d983cdd66f..39a62ae737 100644 --- a/src/lib/libcrypto/ui/ui_err.c +++ b/src/lib/libcrypto/ui/ui_err.c | |||
@@ -1,6 +1,6 @@ | |||
1 | /* crypto/ui/ui_err.c */ | 1 | /* crypto/ui/ui_err.c */ |
2 | /* ==================================================================== | 2 | /* ==================================================================== |
3 | * Copyright (c) 1999-2005 The OpenSSL Project. All rights reserved. | 3 | * Copyright (c) 1999 The OpenSSL Project. All rights reserved. |
4 | * | 4 | * |
5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions | 6 | * modification, are permitted provided that the following conditions |
@@ -64,36 +64,32 @@ | |||
64 | 64 | ||
65 | /* BEGIN ERROR CODES */ | 65 | /* BEGIN ERROR CODES */ |
66 | #ifndef OPENSSL_NO_ERR | 66 | #ifndef OPENSSL_NO_ERR |
67 | |||
68 | #define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0) | ||
69 | #define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason) | ||
70 | |||
71 | static ERR_STRING_DATA UI_str_functs[]= | 67 | static ERR_STRING_DATA UI_str_functs[]= |
72 | { | 68 | { |
73 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "GENERAL_ALLOCATE_BOOLEAN"}, | 69 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_BOOLEAN,0), "GENERAL_ALLOCATE_BOOLEAN"}, |
74 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "GENERAL_ALLOCATE_PROMPT"}, | 70 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_PROMPT,0), "GENERAL_ALLOCATE_PROMPT"}, |
75 | {ERR_FUNC(UI_F_GENERAL_ALLOCATE_STRING), "GENERAL_ALLOCATE_STRING"}, | 71 | {ERR_PACK(0,UI_F_GENERAL_ALLOCATE_STRING,0), "GENERAL_ALLOCATE_STRING"}, |
76 | {ERR_FUNC(UI_F_UI_CTRL), "UI_ctrl"}, | 72 | {ERR_PACK(0,UI_F_UI_CTRL,0), "UI_ctrl"}, |
77 | {ERR_FUNC(UI_F_UI_DUP_ERROR_STRING), "UI_dup_error_string"}, | 73 | {ERR_PACK(0,UI_F_UI_DUP_ERROR_STRING,0), "UI_dup_error_string"}, |
78 | {ERR_FUNC(UI_F_UI_DUP_INFO_STRING), "UI_dup_info_string"}, | 74 | {ERR_PACK(0,UI_F_UI_DUP_INFO_STRING,0), "UI_dup_info_string"}, |
79 | {ERR_FUNC(UI_F_UI_DUP_INPUT_BOOLEAN), "UI_dup_input_boolean"}, | 75 | {ERR_PACK(0,UI_F_UI_DUP_INPUT_BOOLEAN,0), "UI_dup_input_boolean"}, |
80 | {ERR_FUNC(UI_F_UI_DUP_INPUT_STRING), "UI_dup_input_string"}, | 76 | {ERR_PACK(0,UI_F_UI_DUP_INPUT_STRING,0), "UI_dup_input_string"}, |
81 | {ERR_FUNC(UI_F_UI_DUP_VERIFY_STRING), "UI_dup_verify_string"}, | 77 | {ERR_PACK(0,UI_F_UI_DUP_VERIFY_STRING,0), "UI_dup_verify_string"}, |
82 | {ERR_FUNC(UI_F_UI_GET0_RESULT), "UI_get0_result"}, | 78 | {ERR_PACK(0,UI_F_UI_GET0_RESULT,0), "UI_get0_result"}, |
83 | {ERR_FUNC(UI_F_UI_NEW_METHOD), "UI_new_method"}, | 79 | {ERR_PACK(0,UI_F_UI_NEW_METHOD,0), "UI_new_method"}, |
84 | {ERR_FUNC(UI_F_UI_SET_RESULT), "UI_set_result"}, | 80 | {ERR_PACK(0,UI_F_UI_SET_RESULT,0), "UI_set_result"}, |
85 | {0,NULL} | 81 | {0,NULL} |
86 | }; | 82 | }; |
87 | 83 | ||
88 | static ERR_STRING_DATA UI_str_reasons[]= | 84 | static ERR_STRING_DATA UI_str_reasons[]= |
89 | { | 85 | { |
90 | {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS),"common ok and cancel characters"}, | 86 | {UI_R_COMMON_OK_AND_CANCEL_CHARACTERS ,"common ok and cancel characters"}, |
91 | {ERR_REASON(UI_R_INDEX_TOO_LARGE) ,"index too large"}, | 87 | {UI_R_INDEX_TOO_LARGE ,"index too large"}, |
92 | {ERR_REASON(UI_R_INDEX_TOO_SMALL) ,"index too small"}, | 88 | {UI_R_INDEX_TOO_SMALL ,"index too small"}, |
93 | {ERR_REASON(UI_R_NO_RESULT_BUFFER) ,"no result buffer"}, | 89 | {UI_R_NO_RESULT_BUFFER ,"no result buffer"}, |
94 | {ERR_REASON(UI_R_RESULT_TOO_LARGE) ,"result too large"}, | 90 | {UI_R_RESULT_TOO_LARGE ,"result too large"}, |
95 | {ERR_REASON(UI_R_RESULT_TOO_SMALL) ,"result too small"}, | 91 | {UI_R_RESULT_TOO_SMALL ,"result too small"}, |
96 | {ERR_REASON(UI_R_UNKNOWN_CONTROL_COMMAND),"unknown control command"}, | 92 | {UI_R_UNKNOWN_CONTROL_COMMAND ,"unknown control command"}, |
97 | {0,NULL} | 93 | {0,NULL} |
98 | }; | 94 | }; |
99 | 95 | ||
@@ -107,8 +103,8 @@ void ERR_load_UI_strings(void) | |||
107 | { | 103 | { |
108 | init=0; | 104 | init=0; |
109 | #ifndef OPENSSL_NO_ERR | 105 | #ifndef OPENSSL_NO_ERR |
110 | ERR_load_strings(0,UI_str_functs); | 106 | ERR_load_strings(ERR_LIB_UI,UI_str_functs); |
111 | ERR_load_strings(0,UI_str_reasons); | 107 | ERR_load_strings(ERR_LIB_UI,UI_str_reasons); |
112 | #endif | 108 | #endif |
113 | 109 | ||
114 | } | 110 | } |