[331] | 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/engine.h>
|
---|
| 14 |
|
---|
| 15 | /* BEGIN ERROR CODES */
|
---|
| 16 | #ifndef OPENSSL_NO_ERR
|
---|
| 17 |
|
---|
| 18 | # define ERR_FUNC(func) ERR_PACK(ERR_LIB_ENGINE,func,0)
|
---|
| 19 | # define ERR_REASON(reason) ERR_PACK(ERR_LIB_ENGINE,0,reason)
|
---|
| 20 |
|
---|
| 21 | static ERR_STRING_DATA ENGINE_str_functs[] = {
|
---|
| 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"},
|
---|
| 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"},
|
---|
| 33 | {ERR_FUNC(ENGINE_F_ENGINE_GET_CIPHER), "ENGINE_get_cipher"},
|
---|
| 34 | {ERR_FUNC(ENGINE_F_ENGINE_GET_DIGEST), "ENGINE_get_digest"},
|
---|
| 35 | {ERR_FUNC(ENGINE_F_ENGINE_GET_FIRST), "ENGINE_get_first"},
|
---|
| 36 | {ERR_FUNC(ENGINE_F_ENGINE_GET_LAST), "ENGINE_get_last"},
|
---|
| 37 | {ERR_FUNC(ENGINE_F_ENGINE_GET_NEXT), "ENGINE_get_next"},
|
---|
| 38 | {ERR_FUNC(ENGINE_F_ENGINE_GET_PKEY_ASN1_METH),
|
---|
| 39 | "ENGINE_get_pkey_asn1_meth"},
|
---|
| 40 | {ERR_FUNC(ENGINE_F_ENGINE_GET_PKEY_METH), "ENGINE_get_pkey_meth"},
|
---|
| 41 | {ERR_FUNC(ENGINE_F_ENGINE_GET_PREV), "ENGINE_get_prev"},
|
---|
| 42 | {ERR_FUNC(ENGINE_F_ENGINE_INIT), "ENGINE_init"},
|
---|
| 43 | {ERR_FUNC(ENGINE_F_ENGINE_LIST_ADD), "engine_list_add"},
|
---|
| 44 | {ERR_FUNC(ENGINE_F_ENGINE_LIST_REMOVE), "engine_list_remove"},
|
---|
| 45 | {ERR_FUNC(ENGINE_F_ENGINE_LOAD_PRIVATE_KEY), "ENGINE_load_private_key"},
|
---|
| 46 | {ERR_FUNC(ENGINE_F_ENGINE_LOAD_PUBLIC_KEY), "ENGINE_load_public_key"},
|
---|
| 47 | {ERR_FUNC(ENGINE_F_ENGINE_LOAD_SSL_CLIENT_CERT),
|
---|
| 48 | "ENGINE_load_ssl_client_cert"},
|
---|
| 49 | {ERR_FUNC(ENGINE_F_ENGINE_NEW), "ENGINE_new"},
|
---|
| 50 | {ERR_FUNC(ENGINE_F_ENGINE_PKEY_ASN1_FIND_STR),
|
---|
| 51 | "ENGINE_pkey_asn1_find_str"},
|
---|
| 52 | {ERR_FUNC(ENGINE_F_ENGINE_REMOVE), "ENGINE_remove"},
|
---|
| 53 | {ERR_FUNC(ENGINE_F_ENGINE_SET_DEFAULT_STRING),
|
---|
| 54 | "ENGINE_set_default_string"},
|
---|
| 55 | {ERR_FUNC(ENGINE_F_ENGINE_SET_ID), "ENGINE_set_id"},
|
---|
| 56 | {ERR_FUNC(ENGINE_F_ENGINE_SET_NAME), "ENGINE_set_name"},
|
---|
| 57 | {ERR_FUNC(ENGINE_F_ENGINE_TABLE_REGISTER), "engine_table_register"},
|
---|
| 58 | {ERR_FUNC(ENGINE_F_ENGINE_UNLOCKED_FINISH), "engine_unlocked_finish"},
|
---|
| 59 | {ERR_FUNC(ENGINE_F_ENGINE_UP_REF), "ENGINE_up_ref"},
|
---|
| 60 | {ERR_FUNC(ENGINE_F_INT_CTRL_HELPER), "int_ctrl_helper"},
|
---|
| 61 | {ERR_FUNC(ENGINE_F_INT_ENGINE_CONFIGURE), "int_engine_configure"},
|
---|
| 62 | {ERR_FUNC(ENGINE_F_INT_ENGINE_MODULE_INIT), "int_engine_module_init"},
|
---|
| 63 | {0, NULL}
|
---|
| 64 | };
|
---|
| 65 |
|
---|
| 66 | static ERR_STRING_DATA ENGINE_str_reasons[] = {
|
---|
| 67 | {ERR_REASON(ENGINE_R_ALREADY_LOADED), "already loaded"},
|
---|
| 68 | {ERR_REASON(ENGINE_R_ARGUMENT_IS_NOT_A_NUMBER),
|
---|
| 69 | "argument is not a number"},
|
---|
| 70 | {ERR_REASON(ENGINE_R_CMD_NOT_EXECUTABLE), "cmd not executable"},
|
---|
| 71 | {ERR_REASON(ENGINE_R_COMMAND_TAKES_INPUT), "command takes input"},
|
---|
| 72 | {ERR_REASON(ENGINE_R_COMMAND_TAKES_NO_INPUT), "command takes no input"},
|
---|
| 73 | {ERR_REASON(ENGINE_R_CONFLICTING_ENGINE_ID), "conflicting engine id"},
|
---|
| 74 | {ERR_REASON(ENGINE_R_CTRL_COMMAND_NOT_IMPLEMENTED),
|
---|
| 75 | "ctrl command not implemented"},
|
---|
| 76 | {ERR_REASON(ENGINE_R_DSO_FAILURE), "DSO failure"},
|
---|
| 77 | {ERR_REASON(ENGINE_R_DSO_NOT_FOUND), "dso not found"},
|
---|
| 78 | {ERR_REASON(ENGINE_R_ENGINES_SECTION_ERROR), "engines section error"},
|
---|
| 79 | {ERR_REASON(ENGINE_R_ENGINE_CONFIGURATION_ERROR),
|
---|
| 80 | "engine configuration error"},
|
---|
| 81 | {ERR_REASON(ENGINE_R_ENGINE_IS_NOT_IN_LIST), "engine is not in the list"},
|
---|
| 82 | {ERR_REASON(ENGINE_R_ENGINE_SECTION_ERROR), "engine section error"},
|
---|
| 83 | {ERR_REASON(ENGINE_R_FAILED_LOADING_PRIVATE_KEY),
|
---|
| 84 | "failed loading private key"},
|
---|
| 85 | {ERR_REASON(ENGINE_R_FAILED_LOADING_PUBLIC_KEY),
|
---|
| 86 | "failed loading public key"},
|
---|
| 87 | {ERR_REASON(ENGINE_R_FINISH_FAILED), "finish failed"},
|
---|
| 88 | {ERR_REASON(ENGINE_R_ID_OR_NAME_MISSING), "'id' or 'name' missing"},
|
---|
| 89 | {ERR_REASON(ENGINE_R_INIT_FAILED), "init failed"},
|
---|
| 90 | {ERR_REASON(ENGINE_R_INTERNAL_LIST_ERROR), "internal list error"},
|
---|
| 91 | {ERR_REASON(ENGINE_R_INVALID_ARGUMENT), "invalid argument"},
|
---|
| 92 | {ERR_REASON(ENGINE_R_INVALID_CMD_NAME), "invalid cmd name"},
|
---|
| 93 | {ERR_REASON(ENGINE_R_INVALID_CMD_NUMBER), "invalid cmd number"},
|
---|
| 94 | {ERR_REASON(ENGINE_R_INVALID_INIT_VALUE), "invalid init value"},
|
---|
| 95 | {ERR_REASON(ENGINE_R_INVALID_STRING), "invalid string"},
|
---|
| 96 | {ERR_REASON(ENGINE_R_NOT_INITIALISED), "not initialised"},
|
---|
| 97 | {ERR_REASON(ENGINE_R_NOT_LOADED), "not loaded"},
|
---|
| 98 | {ERR_REASON(ENGINE_R_NO_CONTROL_FUNCTION), "no control function"},
|
---|
| 99 | {ERR_REASON(ENGINE_R_NO_INDEX), "no index"},
|
---|
| 100 | {ERR_REASON(ENGINE_R_NO_LOAD_FUNCTION), "no load function"},
|
---|
| 101 | {ERR_REASON(ENGINE_R_NO_REFERENCE), "no reference"},
|
---|
| 102 | {ERR_REASON(ENGINE_R_NO_SUCH_ENGINE), "no such engine"},
|
---|
| 103 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_CIPHER), "unimplemented cipher"},
|
---|
| 104 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_DIGEST), "unimplemented digest"},
|
---|
| 105 | {ERR_REASON(ENGINE_R_UNIMPLEMENTED_PUBLIC_KEY_METHOD),
|
---|
| 106 | "unimplemented public key method"},
|
---|
| 107 | {ERR_REASON(ENGINE_R_VERSION_INCOMPATIBILITY), "version incompatibility"},
|
---|
| 108 | {0, NULL}
|
---|
| 109 | };
|
---|
| 110 |
|
---|
| 111 | #endif
|
---|
| 112 |
|
---|
| 113 | int ERR_load_ENGINE_strings(void)
|
---|
| 114 | {
|
---|
| 115 | #ifndef OPENSSL_NO_ERR
|
---|
| 116 |
|
---|
| 117 | if (ERR_func_error_string(ENGINE_str_functs[0].error) == NULL) {
|
---|
| 118 | ERR_load_strings(0, ENGINE_str_functs);
|
---|
| 119 | ERR_load_strings(0, ENGINE_str_reasons);
|
---|
| 120 | }
|
---|
| 121 | #endif
|
---|
| 122 | return 1;
|
---|
| 123 | }
|
---|