]>
Commit | Line | Data |
---|---|---|
0f113f3e | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
38fc02a7 | 3 | * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved. |
b6cff313 | 4 | * |
55e0593c | 5 | * Licensed under the Apache License 2.0 (the "License"). You may not use |
b6cff313 RS |
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 | |
a63d5eaa RL |
9 | */ |
10 | ||
a63d5eaa | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/uierr.h> |
14a6c6a4 | 13 | #include "crypto/uierr.h" |
a63d5eaa | 14 | |
a63d5eaa | 15 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 16 | |
52df25cf RS |
17 | static const ERR_STRING_DATA UI_str_reasons[] = { |
18 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_COMMON_OK_AND_CANCEL_CHARACTERS), | |
19 | "common ok and cancel characters"}, | |
20 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_INDEX_TOO_LARGE), "index too large"}, | |
21 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_INDEX_TOO_SMALL), "index too small"}, | |
22 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_NO_RESULT_BUFFER), "no result buffer"}, | |
23 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_PROCESSING_ERROR), "processing error"}, | |
24 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_RESULT_TOO_LARGE), "result too large"}, | |
25 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_RESULT_TOO_SMALL), "result too small"}, | |
26 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_SYSASSIGN_ERROR), "sys$assign error"}, | |
27 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_SYSDASSGN_ERROR), "sys$dassgn error"}, | |
28 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_SYSQIOW_ERROR), "sys$qiow error"}, | |
29 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_UNKNOWN_CONTROL_COMMAND), | |
30 | "unknown control command"}, | |
31 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_UNKNOWN_TTYGET_ERRNO_VALUE), | |
32 | "unknown ttyget errno value"}, | |
33 | {ERR_PACK(ERR_LIB_UI, 0, UI_R_USER_DATA_DUPLICATION_UNSUPPORTED), | |
34 | "user data duplication unsupported"}, | |
0f113f3e MC |
35 | {0, NULL} |
36 | }; | |
a63d5eaa RL |
37 | |
38 | #endif | |
39 | ||
b93f6c2d | 40 | int ossl_err_load_UI_strings(void) |
0f113f3e | 41 | { |
47a9d527 | 42 | #ifndef OPENSSL_NO_ERR |
0cd1b144 | 43 | if (ERR_reason_error_string(UI_str_reasons[0].error) == NULL) |
52df25cf | 44 | ERR_load_strings_const(UI_str_reasons); |
47a9d527 | 45 | #endif |
69588edb | 46 | return 1; |
0f113f3e | 47 | } |