]> git.ipfire.org Git - thirdparty/openssl.git/blame - crypto/engine/eng_err.c
Remove unused error/function codes.
[thirdparty/openssl.git] / crypto / engine / eng_err.c
CommitLineData
b6cff313 1/*
0cd0a820 2 * Generated by util/mkerr.pl DO NOT EDIT
b6cff313 3 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
5270e702 4 *
b6cff313
RS
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
5270e702
RL
9 */
10
5270e702
RL
11#include <stdio.h>
12#include <openssl/err.h>
13#include <openssl/engine.h>
14
15/* BEGIN ERROR CODES */
cf1b7d96 16#ifndef OPENSSL_NO_ERR
29dc3508 17
0f113f3e
MC
18# define ERR_FUNC(func) ERR_PACK(ERR_LIB_ENGINE,func,0)
19# define ERR_REASON(reason) ERR_PACK(ERR_LIB_ENGINE,0,reason)
29dc3508 20
0f113f3e 21static ERR_STRING_DATA ENGINE_str_functs[] = {
b8fb5989
DSH
22 {ERR_FUNC(ENGINE_F_DYNAMIC_CTRL), "dynamic_ctrl"},
23 {ERR_FUNC(ENGINE_F_DYNAMIC_GET_DATA_CTX), "dynamic_get_data_ctx"},
24 {ERR_FUNC(ENGINE_F_DYNAMIC_LOAD), "dynamic_load"},
25 {ERR_FUNC(ENGINE_F_DYNAMIC_SET_DATA_CTX), "dynamic_set_data_ctx"},
0f113f3e
MC
26 {ERR_FUNC(ENGINE_F_ENGINE_ADD), "ENGINE_add"},
27 {ERR_FUNC(ENGINE_F_ENGINE_BY_ID), "ENGINE_by_id"},
28 {ERR_FUNC(ENGINE_F_ENGINE_CMD_IS_EXECUTABLE), "ENGINE_cmd_is_executable"},
29 {ERR_FUNC(ENGINE_F_ENGINE_CTRL), "ENGINE_ctrl"},
30 {ERR_FUNC(ENGINE_F_ENGINE_CTRL_CMD), "ENGINE_ctrl_cmd"},
31 {ERR_FUNC(ENGINE_F_ENGINE_CTRL_CMD_STRING), "ENGINE_ctrl_cmd_string"},
32 {ERR_FUNC(ENGINE_F_ENGINE_FINISH), "ENGINE_finish"},
0f113f3e 33 {ERR_FUNC(ENGINE_F_ENGINE_GET_CIPHER), "ENGINE_get_cipher"},
0f113f3e
MC
34 {ERR_FUNC(ENGINE_F_ENGINE_GET_DIGEST), "ENGINE_get_digest"},
35 {ERR_FUNC(ENGINE_F_ENGINE_GET_NEXT), "ENGINE_get_next"},
36 {ERR_FUNC(ENGINE_F_ENGINE_GET_PKEY_ASN1_METH),
37 "ENGINE_get_pkey_asn1_meth"},
38 {ERR_FUNC(ENGINE_F_ENGINE_GET_PKEY_METH), "ENGINE_get_pkey_meth"},
39 {ERR_FUNC(ENGINE_F_ENGINE_GET_PREV), "ENGINE_get_prev"},
40 {ERR_FUNC(ENGINE_F_ENGINE_INIT), "ENGINE_init"},
b8fb5989
DSH
41 {ERR_FUNC(ENGINE_F_ENGINE_LIST_ADD), "engine_list_add"},
42 {ERR_FUNC(ENGINE_F_ENGINE_LIST_REMOVE), "engine_list_remove"},
0f113f3e
MC
43 {ERR_FUNC(ENGINE_F_ENGINE_LOAD_PRIVATE_KEY), "ENGINE_load_private_key"},
44 {ERR_FUNC(ENGINE_F_ENGINE_LOAD_PUBLIC_KEY), "ENGINE_load_public_key"},
45 {ERR_FUNC(ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT),
46 "ENGINE_load_ssl_client_cert"},
47 {ERR_FUNC(ENGINE_F_ENGINE_NEW), "ENGINE_new"},
48 {ERR_FUNC(ENGINE_F_ENGINE_REMOVE), "ENGINE_remove"},
49 {ERR_FUNC(ENGINE_F_ENGINE_SET_DEFAULT_STRING),
50 "ENGINE_set_default_string"},
0f113f3e
MC
51 {ERR_FUNC(ENGINE_F_ENGINE_SET_ID), "ENGINE_set_id"},
52 {ERR_FUNC(ENGINE_F_ENGINE_SET_NAME), "ENGINE_set_name"},
b8fb5989 53 {ERR_FUNC(ENGINE_F_ENGINE_TABLE_REGISTER), "engine_table_register"},
b8fb5989 54 {ERR_FUNC(ENGINE_F_ENGINE_UNLOCKED_FINISH), "engine_unlocked_finish"},
0f113f3e 55 {ERR_FUNC(ENGINE_F_ENGINE_UP_REF), "ENGINE_up_ref"},
b8fb5989
DSH
56 {ERR_FUNC(ENGINE_F_INT_CTRL_HELPER), "int_ctrl_helper"},
57 {ERR_FUNC(ENGINE_F_INT_ENGINE_CONFIGURE), "int_engine_configure"},
58 {ERR_FUNC(ENGINE_F_INT_ENGINE_MODULE_INIT), "int_engine_module_init"},
0f113f3e
MC
59 {0, NULL}
60};
5270e702 61
0f113f3e
MC
62static ERR_STRING_DATA ENGINE_str_reasons[] = {
63 {ERR_REASON(ENGINE_R_ALREADY_LOADED), "already loaded"},
64 {ERR_REASON(ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER),
65 "argument is not a number"},
66 {ERR_REASON(ENGINE_R_CMD_NOT_EXECUTABLE), "cmd not executable"},
67 {ERR_REASON(ENGINE_R_COMMAND_TAKES_INPUT), "command takes input"},
68 {ERR_REASON(ENGINE_R_COMMAND_TAKES_NO_INPUT), "command takes no input"},
69 {ERR_REASON(ENGINE_R_CONFLICTING_ENGINE_ID), "conflicting engine id"},
70 {ERR_REASON(ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED),
71 "ctrl command not implemented"},
0f113f3e
MC
72 {ERR_REASON(ENGINE_R_DSO_FAILURE), "DSO failure"},
73 {ERR_REASON(ENGINE_R_DSO_NOT_FOUND), "dso not found"},
74 {ERR_REASON(ENGINE_R_ENGINES_SECTION_ERROR), "engines section error"},
75 {ERR_REASON(ENGINE_R_ENGINE_CONFIGURATION_ERROR),
76 "engine configuration error"},
77 {ERR_REASON(ENGINE_R_ENGINE_IS_NOT_IN_LIST), "engine is not in the list"},
78 {ERR_REASON(ENGINE_R_ENGINE_SECTION_ERROR), "engine section error"},
79 {ERR_REASON(ENGINE_R_FAILED_LOADING_PRIVATE_KEY),
80 "failed loading private key"},
81 {ERR_REASON(ENGINE_R_FAILED_LOADING_PUBLIC_KEY),
82 "failed loading public key"},
83 {ERR_REASON(ENGINE_R_FINISH_FAILED), "finish failed"},
0f113f3e
MC
84 {ERR_REASON(ENGINE_R_ID_OR_NAME_MISSING), "'id' or 'name' missing"},
85 {ERR_REASON(ENGINE_R_INIT_FAILED), "init failed"},
86 {ERR_REASON(ENGINE_R_INTERNAL_LIST_ERROR), "internal list error"},
87 {ERR_REASON(ENGINE_R_INVALID_ARGUMENT), "invalid argument"},
88 {ERR_REASON(ENGINE_R_INVALID_CMD_NAME), "invalid cmd name"},
89 {ERR_REASON(ENGINE_R_INVALID_CMD_NUMBER), "invalid cmd number"},
90 {ERR_REASON(ENGINE_R_INVALID_INIT_VALUE), "invalid init value"},
91 {ERR_REASON(ENGINE_R_INVALID_STRING), "invalid string"},
92 {ERR_REASON(ENGINE_R_NOT_INITIALISED), "not initialised"},
93 {ERR_REASON(ENGINE_R_NOT_LOADED), "not loaded"},
94 {ERR_REASON(ENGINE_R_NO_CONTROL_FUNCTION), "no control function"},
95 {ERR_REASON(ENGINE_R_NO_INDEX), "no index"},
96 {ERR_REASON(ENGINE_R_NO_LOAD_FUNCTION), "no load function"},
97 {ERR_REASON(ENGINE_R_NO_REFERENCE), "no reference"},
98 {ERR_REASON(ENGINE_R_NO_SUCH_ENGINE), "no such engine"},
0f113f3e
MC
99 {ERR_REASON(ENGINE_R_UNIMPLEMENTED_CIPHER), "unimplemented cipher"},
100 {ERR_REASON(ENGINE_R_UNIMPLEMENTED_DIGEST), "unimplemented digest"},
101 {ERR_REASON(ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD),
102 "unimplemented public key method"},
103 {ERR_REASON(ENGINE_R_VERSION_INCOMPATIBILITY), "version incompatibility"},
104 {0, NULL}
105};
5270e702
RL
106
107#endif
108
109void ERR_load_ENGINE_strings(void)
0f113f3e 110{
47a9d527 111#ifndef OPENSSL_NO_ERR
5270e702 112
0f113f3e
MC
113 if (ERR_func_error_string(ENGINE_str_functs[0].error) == NULL) {
114 ERR_load_strings(0, ENGINE_str_functs);
115 ERR_load_strings(0, ENGINE_str_reasons);
116 }
47a9d527 117#endif
0f113f3e 118}