2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved.
5 * Licensed under the OpenSSL license (the "License"). You may not use
6 * this file except in compliance with the License. You can obtain a copy
7 * in the file LICENSE in the source distribution or at
8 * https://www.openssl.org/source/license.html
11 #include <openssl/err.h>
12 #include <openssl/uierr.h>
14 #ifndef OPENSSL_NO_ERR
16 static const ERR_STRING_DATA UI_str_functs
[] = {
17 {ERR_PACK(ERR_LIB_UI
, UI_F_CLOSE_CONSOLE
, 0), "close_console"},
18 {ERR_PACK(ERR_LIB_UI
, UI_F_ECHO_CONSOLE
, 0), "echo_console"},
19 {ERR_PACK(ERR_LIB_UI
, UI_F_GENERAL_ALLOCATE_BOOLEAN
, 0),
20 "general_allocate_boolean"},
21 {ERR_PACK(ERR_LIB_UI
, UI_F_GENERAL_ALLOCATE_PROMPT
, 0),
22 "general_allocate_prompt"},
23 {ERR_PACK(ERR_LIB_UI
, UI_F_NOECHO_CONSOLE
, 0), "noecho_console"},
24 {ERR_PACK(ERR_LIB_UI
, UI_F_OPEN_CONSOLE
, 0), "open_console"},
25 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_CREATE_METHOD
, 0), "UI_create_method"},
26 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_CTRL
, 0), "UI_ctrl"},
27 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_ERROR_STRING
, 0), "UI_dup_error_string"},
28 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_INFO_STRING
, 0), "UI_dup_info_string"},
29 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_INPUT_BOOLEAN
, 0),
30 "UI_dup_input_boolean"},
31 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_INPUT_STRING
, 0), "UI_dup_input_string"},
32 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_USER_DATA
, 0), "UI_dup_user_data"},
33 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_DUP_VERIFY_STRING
, 0),
34 "UI_dup_verify_string"},
35 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_GET0_RESULT
, 0), "UI_get0_result"},
36 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_NEW_METHOD
, 0), "UI_new_method"},
37 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_PROCESS
, 0), "UI_process"},
38 {ERR_PACK(ERR_LIB_UI
, UI_F_UI_SET_RESULT
, 0), "UI_set_result"},
42 static const ERR_STRING_DATA UI_str_reasons
[] = {
43 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_COMMON_OK_AND_CANCEL_CHARACTERS
),
44 "common ok and cancel characters"},
45 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_INDEX_TOO_LARGE
), "index too large"},
46 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_INDEX_TOO_SMALL
), "index too small"},
47 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_NO_RESULT_BUFFER
), "no result buffer"},
48 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_PROCESSING_ERROR
), "processing error"},
49 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_RESULT_TOO_LARGE
), "result too large"},
50 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_RESULT_TOO_SMALL
), "result too small"},
51 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_SYSASSIGN_ERROR
), "sys$assign error"},
52 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_SYSDASSGN_ERROR
), "sys$dassgn error"},
53 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_SYSQIOW_ERROR
), "sys$qiow error"},
54 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_UNKNOWN_CONTROL_COMMAND
),
55 "unknown control command"},
56 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_UNKNOWN_TTYGET_ERRNO_VALUE
),
57 "unknown ttyget errno value"},
58 {ERR_PACK(ERR_LIB_UI
, 0, UI_R_USER_DATA_DUPLICATION_UNSUPPORTED
),
59 "user data duplication unsupported"},
65 int ERR_load_UI_strings(void)
67 #ifndef OPENSSL_NO_ERR
68 if (ERR_func_error_string(UI_str_functs
[0].error
) == NULL
) {
69 ERR_load_strings_const(UI_str_functs
);
70 ERR_load_strings_const(UI_str_reasons
);