VirtualBox

source: vbox/trunk/src/libs/openssl-1.1.0g/crypto/ui/ui_err.c@ 69890

Last change on this file since 69890 was 69890, checked in by vboxsync, 7 years ago

Added OpenSSL 1.1.0g with unneeded files removed, otherwise unmodified.
bugref:8070: src/libs maintenance

  • Property svn:eol-style set to native
File size: 2.7 KB
Line 
1/*
2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
4 *
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
9 */
10
11#include <stdio.h>
12#include <openssl/err.h>
13#include <openssl/ui.h>
14
15/* BEGIN ERROR CODES */
16#ifndef OPENSSL_NO_ERR
17
18# define ERR_FUNC(func) ERR_PACK(ERR_LIB_UI,func,0)
19# define ERR_REASON(reason) ERR_PACK(ERR_LIB_UI,0,reason)
20
21static ERR_STRING_DATA UI_str_functs[] = {
22 {ERR_FUNC(UI_F_CLOSE_CONSOLE), "close_console"},
23 {ERR_FUNC(UI_F_ECHO_CONSOLE), "echo_console"},
24 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_BOOLEAN), "general_allocate_boolean"},
25 {ERR_FUNC(UI_F_GENERAL_ALLOCATE_PROMPT), "general_allocate_prompt"},
26 {ERR_FUNC(UI_F_NOECHO_CONSOLE), "noecho_console"},
27 {ERR_FUNC(UI_F_OPEN_CONSOLE), "open_console"},
28 {ERR_FUNC(UI_F_UI_CREATE_METHOD), "UI_create_method"},
29 {ERR_FUNC(UI_F_UI_CTRL), "UI_ctrl"},
30 {ERR_FUNC(UI_F_UI_DUP_ERROR_STRING), "UI_dup_error_string"},
31 {ERR_FUNC(UI_F_UI_DUP_INFO_STRING), "UI_dup_info_string"},
32 {ERR_FUNC(UI_F_UI_DUP_INPUT_BOOLEAN), "UI_dup_input_boolean"},
33 {ERR_FUNC(UI_F_UI_DUP_INPUT_STRING), "UI_dup_input_string"},
34 {ERR_FUNC(UI_F_UI_DUP_VERIFY_STRING), "UI_dup_verify_string"},
35 {ERR_FUNC(UI_F_UI_GET0_RESULT), "UI_get0_result"},
36 {ERR_FUNC(UI_F_UI_NEW_METHOD), "UI_new_method"},
37 {ERR_FUNC(UI_F_UI_PROCESS), "UI_process"},
38 {ERR_FUNC(UI_F_UI_SET_RESULT), "UI_set_result"},
39 {0, NULL}
40};
41
42static ERR_STRING_DATA UI_str_reasons[] = {
43 {ERR_REASON(UI_R_COMMON_OK_AND_CANCEL_CHARACTERS),
44 "common ok and cancel characters"},
45 {ERR_REASON(UI_R_INDEX_TOO_LARGE), "index too large"},
46 {ERR_REASON(UI_R_INDEX_TOO_SMALL), "index too small"},
47 {ERR_REASON(UI_R_NO_RESULT_BUFFER), "no result buffer"},
48 {ERR_REASON(UI_R_PROCESSING_ERROR), "processing error"},
49 {ERR_REASON(UI_R_RESULT_TOO_LARGE), "result too large"},
50 {ERR_REASON(UI_R_RESULT_TOO_SMALL), "result too small"},
51 {ERR_REASON(UI_R_SYSASSIGN_ERROR), "sys$assign error"},
52 {ERR_REASON(UI_R_SYSDASSGN_ERROR), "sys$dassgn error"},
53 {ERR_REASON(UI_R_SYSQIOW_ERROR), "sys$qiow error"},
54 {ERR_REASON(UI_R_UNKNOWN_CONTROL_COMMAND), "unknown control command"},
55 {ERR_REASON(UI_R_UNKNOWN_TTYGET_ERRNO_VALUE),
56 "unknown ttyget errno value"},
57 {0, NULL}
58};
59
60#endif
61
62int ERR_load_UI_strings(void)
63{
64#ifndef OPENSSL_NO_ERR
65
66 if (ERR_func_error_string(UI_str_functs[0].error) == NULL) {
67 ERR_load_strings(0, UI_str_functs);
68 ERR_load_strings(0, UI_str_reasons);
69 }
70#endif
71 return 1;
72}
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette