1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
3e1051a39Sopenharmony_ci * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4e1051a39Sopenharmony_ci *
5e1051a39Sopenharmony_ci * Licensed under the Apache License 2.0 (the "License").  You may not use
6e1051a39Sopenharmony_ci * this file except in compliance with the License.  You can obtain a copy
7e1051a39Sopenharmony_ci * in the file LICENSE in the source distribution or at
8e1051a39Sopenharmony_ci * https://www.openssl.org/source/license.html
9e1051a39Sopenharmony_ci */
10e1051a39Sopenharmony_ci
11e1051a39Sopenharmony_ci#include <openssl/err.h>
12e1051a39Sopenharmony_ci#include <openssl/engineerr.h>
13e1051a39Sopenharmony_ci#include "crypto/engineerr.h"
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_ENGINE
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA ENGINE_str_reasons[] = {
20e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ALREADY_LOADED), "already loaded"},
21e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER),
22e1051a39Sopenharmony_ci    "argument is not a number"},
23e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_CMD_NOT_EXECUTABLE),
24e1051a39Sopenharmony_ci    "cmd not executable"},
25e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_COMMAND_TAKES_INPUT),
26e1051a39Sopenharmony_ci    "command takes input"},
27e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_COMMAND_TAKES_NO_INPUT),
28e1051a39Sopenharmony_ci    "command takes no input"},
29e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_CONFLICTING_ENGINE_ID),
30e1051a39Sopenharmony_ci    "conflicting engine id"},
31e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED),
32e1051a39Sopenharmony_ci    "ctrl command not implemented"},
33e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_DSO_FAILURE), "DSO failure"},
34e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_DSO_NOT_FOUND), "dso not found"},
35e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ENGINES_SECTION_ERROR),
36e1051a39Sopenharmony_ci    "engines section error"},
37e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ENGINE_CONFIGURATION_ERROR),
38e1051a39Sopenharmony_ci    "engine configuration error"},
39e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ENGINE_IS_NOT_IN_LIST),
40e1051a39Sopenharmony_ci    "engine is not in the list"},
41e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ENGINE_SECTION_ERROR),
42e1051a39Sopenharmony_ci    "engine section error"},
43e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_FAILED_LOADING_PRIVATE_KEY),
44e1051a39Sopenharmony_ci    "failed loading private key"},
45e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_FAILED_LOADING_PUBLIC_KEY),
46e1051a39Sopenharmony_ci    "failed loading public key"},
47e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_FINISH_FAILED), "finish failed"},
48e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_ID_OR_NAME_MISSING),
49e1051a39Sopenharmony_ci    "'id' or 'name' missing"},
50e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INIT_FAILED), "init failed"},
51e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INTERNAL_LIST_ERROR),
52e1051a39Sopenharmony_ci    "internal list error"},
53e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INVALID_ARGUMENT),
54e1051a39Sopenharmony_ci    "invalid argument"},
55e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INVALID_CMD_NAME),
56e1051a39Sopenharmony_ci    "invalid cmd name"},
57e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INVALID_CMD_NUMBER),
58e1051a39Sopenharmony_ci    "invalid cmd number"},
59e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INVALID_INIT_VALUE),
60e1051a39Sopenharmony_ci    "invalid init value"},
61e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_INVALID_STRING), "invalid string"},
62e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NOT_INITIALISED), "not initialised"},
63e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NOT_LOADED), "not loaded"},
64e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NO_CONTROL_FUNCTION),
65e1051a39Sopenharmony_ci    "no control function"},
66e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NO_INDEX), "no index"},
67e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NO_LOAD_FUNCTION),
68e1051a39Sopenharmony_ci    "no load function"},
69e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NO_REFERENCE), "no reference"},
70e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_NO_SUCH_ENGINE), "no such engine"},
71e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_UNIMPLEMENTED_CIPHER),
72e1051a39Sopenharmony_ci    "unimplemented cipher"},
73e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_UNIMPLEMENTED_DIGEST),
74e1051a39Sopenharmony_ci    "unimplemented digest"},
75e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD),
76e1051a39Sopenharmony_ci    "unimplemented public key method"},
77e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_ENGINE, 0, ENGINE_R_VERSION_INCOMPATIBILITY),
78e1051a39Sopenharmony_ci    "version incompatibility"},
79e1051a39Sopenharmony_ci    {0, NULL}
80e1051a39Sopenharmony_ci};
81e1051a39Sopenharmony_ci
82e1051a39Sopenharmony_ci# endif
83e1051a39Sopenharmony_ci
84e1051a39Sopenharmony_ciint ossl_err_load_ENGINE_strings(void)
85e1051a39Sopenharmony_ci{
86e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
87e1051a39Sopenharmony_ci    if (ERR_reason_error_string(ENGINE_str_reasons[0].error) == NULL)
88e1051a39Sopenharmony_ci        ERR_load_strings_const(ENGINE_str_reasons);
89e1051a39Sopenharmony_ci# endif
90e1051a39Sopenharmony_ci    return 1;
91e1051a39Sopenharmony_ci}
92e1051a39Sopenharmony_ci#else
93e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT
94e1051a39Sopenharmony_ci#endif
95