2 * Generated by util/mkerr.pl DO NOT EDIT
3 * Copyright 1995-2016 The OpenSSL Project Authors. All Rights Reserved.
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
12 #include <openssl/err.h>
13 #include <openssl/x509v3.h>
15 /* BEGIN ERROR CODES */
16 #ifndef OPENSSL_NO_ERR
18 # define ERR_FUNC(func) ERR_PACK(ERR_LIB_X509V3,func,0)
19 # define ERR_REASON(reason) ERR_PACK(ERR_LIB_X509V3,0,reason)
21 static ERR_STRING_DATA X509V3_str_functs[] = {
22 {ERR_FUNC(X509V3_F_A2I_GENERAL_NAME), "a2i_GENERAL_NAME"},
23 {ERR_FUNC(X509V3_F_ADDR_VALIDATE_PATH_INTERNAL),
24 "addr_validate_path_internal"},
25 {ERR_FUNC(X509V3_F_ASIDENTIFIERCHOICE_CANONIZE),
26 "ASIdentifierChoice_canonize"},
27 {ERR_FUNC(X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL),
28 "ASIdentifierChoice_is_canonical"},
29 {ERR_FUNC(X509V3_F_COPY_EMAIL), "copy_email"},
30 {ERR_FUNC(X509V3_F_COPY_ISSUER), "copy_issuer"},
31 {ERR_FUNC(X509V3_F_DO_DIRNAME), "do_dirname"},
32 {ERR_FUNC(X509V3_F_DO_EXT_I2D), "do_ext_i2d"},
33 {ERR_FUNC(X509V3_F_DO_EXT_NCONF), "do_ext_nconf"},
34 {ERR_FUNC(X509V3_F_GNAMES_FROM_SECTNAME), "gnames_from_sectname"},
35 {ERR_FUNC(X509V3_F_I2S_ASN1_ENUMERATED), "i2s_ASN1_ENUMERATED"},
36 {ERR_FUNC(X509V3_F_I2S_ASN1_IA5STRING), "i2s_ASN1_IA5STRING"},
37 {ERR_FUNC(X509V3_F_I2S_ASN1_INTEGER), "i2s_ASN1_INTEGER"},
38 {ERR_FUNC(X509V3_F_I2V_AUTHORITY_INFO_ACCESS),
39 "i2v_AUTHORITY_INFO_ACCESS"},
40 {ERR_FUNC(X509V3_F_NOTICE_SECTION), "notice_section"},
41 {ERR_FUNC(X509V3_F_NREF_NOS), "nref_nos"},
42 {ERR_FUNC(X509V3_F_POLICY_SECTION), "policy_section"},
43 {ERR_FUNC(X509V3_F_PROCESS_PCI_VALUE), "process_pci_value"},
44 {ERR_FUNC(X509V3_F_R2I_CERTPOL), "r2i_certpol"},
45 {ERR_FUNC(X509V3_F_R2I_PCI), "r2i_pci"},
46 {ERR_FUNC(X509V3_F_S2I_ASN1_IA5STRING), "s2i_ASN1_IA5STRING"},
47 {ERR_FUNC(X509V3_F_S2I_ASN1_INTEGER), "s2i_ASN1_INTEGER"},
48 {ERR_FUNC(X509V3_F_S2I_ASN1_OCTET_STRING), "s2i_ASN1_OCTET_STRING"},
49 {ERR_FUNC(X509V3_F_S2I_SKEY_ID), "s2i_skey_id"},
50 {ERR_FUNC(X509V3_F_SET_DIST_POINT_NAME), "set_dist_point_name"},
51 {ERR_FUNC(X509V3_F_SXNET_ADD_ID_ASC), "SXNET_add_id_asc"},
52 {ERR_FUNC(X509V3_F_SXNET_ADD_ID_INTEGER), "SXNET_add_id_INTEGER"},
53 {ERR_FUNC(X509V3_F_SXNET_ADD_ID_ULONG), "SXNET_add_id_ulong"},
54 {ERR_FUNC(X509V3_F_SXNET_GET_ID_ASC), "SXNET_get_id_asc"},
55 {ERR_FUNC(X509V3_F_SXNET_GET_ID_ULONG), "SXNET_get_id_ulong"},
56 {ERR_FUNC(X509V3_F_V2I_ASIDENTIFIERS), "v2i_ASIdentifiers"},
57 {ERR_FUNC(X509V3_F_V2I_ASN1_BIT_STRING), "v2i_ASN1_BIT_STRING"},
58 {ERR_FUNC(X509V3_F_V2I_AUTHORITY_INFO_ACCESS),
59 "v2i_AUTHORITY_INFO_ACCESS"},
60 {ERR_FUNC(X509V3_F_V2I_AUTHORITY_KEYID), "v2i_AUTHORITY_KEYID"},
61 {ERR_FUNC(X509V3_F_V2I_BASIC_CONSTRAINTS), "v2i_BASIC_CONSTRAINTS"},
62 {ERR_FUNC(X509V3_F_V2I_CRLD), "v2i_crld"},
63 {ERR_FUNC(X509V3_F_V2I_EXTENDED_KEY_USAGE), "v2i_EXTENDED_KEY_USAGE"},
64 {ERR_FUNC(X509V3_F_V2I_GENERAL_NAMES), "v2i_GENERAL_NAMES"},
65 {ERR_FUNC(X509V3_F_V2I_GENERAL_NAME_EX), "v2i_GENERAL_NAME_ex"},
66 {ERR_FUNC(X509V3_F_V2I_IDP), "v2i_idp"},
67 {ERR_FUNC(X509V3_F_V2I_IPADDRBLOCKS), "v2i_IPAddrBlocks"},
68 {ERR_FUNC(X509V3_F_V2I_ISSUER_ALT), "v2i_issuer_alt"},
69 {ERR_FUNC(X509V3_F_V2I_NAME_CONSTRAINTS), "v2i_NAME_CONSTRAINTS"},
70 {ERR_FUNC(X509V3_F_V2I_POLICY_CONSTRAINTS), "v2i_POLICY_CONSTRAINTS"},
71 {ERR_FUNC(X509V3_F_V2I_POLICY_MAPPINGS), "v2i_POLICY_MAPPINGS"},
72 {ERR_FUNC(X509V3_F_V2I_SUBJECT_ALT), "v2i_subject_alt"},
73 {ERR_FUNC(X509V3_F_V2I_TLS_FEATURE), "v2i_TLS_FEATURE"},
74 {ERR_FUNC(X509V3_F_V3_GENERIC_EXTENSION), "v3_generic_extension"},
75 {ERR_FUNC(X509V3_F_X509V3_ADD1_I2D), "X509V3_add1_i2d"},
76 {ERR_FUNC(X509V3_F_X509V3_ADD_VALUE), "X509V3_add_value"},
77 {ERR_FUNC(X509V3_F_X509V3_EXT_ADD), "X509V3_EXT_add"},
78 {ERR_FUNC(X509V3_F_X509V3_EXT_ADD_ALIAS), "X509V3_EXT_add_alias"},
79 {ERR_FUNC(X509V3_F_X509V3_EXT_I2D), "X509V3_EXT_i2d"},
80 {ERR_FUNC(X509V3_F_X509V3_EXT_NCONF), "X509V3_EXT_nconf"},
81 {ERR_FUNC(X509V3_F_X509V3_GET_SECTION), "X509V3_get_section"},
82 {ERR_FUNC(X509V3_F_X509V3_GET_STRING), "X509V3_get_string"},
83 {ERR_FUNC(X509V3_F_X509V3_GET_VALUE_BOOL), "X509V3_get_value_bool"},
84 {ERR_FUNC(X509V3_F_X509V3_PARSE_LIST), "X509V3_parse_list"},
85 {ERR_FUNC(X509V3_F_X509_PURPOSE_ADD), "X509_PURPOSE_add"},
86 {ERR_FUNC(X509V3_F_X509_PURPOSE_SET), "X509_PURPOSE_set"},
90 static ERR_STRING_DATA X509V3_str_reasons[] = {
91 {ERR_REASON(X509V3_R_BAD_IP_ADDRESS), "bad ip address"},
92 {ERR_REASON(X509V3_R_BAD_OBJECT), "bad object"},
93 {ERR_REASON(X509V3_R_BN_DEC2BN_ERROR), "bn dec2bn error"},
94 {ERR_REASON(X509V3_R_BN_TO_ASN1_INTEGER_ERROR),
95 "bn to asn1 integer error"},
96 {ERR_REASON(X509V3_R_DIRNAME_ERROR), "dirname error"},
97 {ERR_REASON(X509V3_R_DISTPOINT_ALREADY_SET), "distpoint already set"},
98 {ERR_REASON(X509V3_R_DUPLICATE_ZONE_ID), "duplicate zone id"},
99 {ERR_REASON(X509V3_R_ERROR_CONVERTING_ZONE), "error converting zone"},
100 {ERR_REASON(X509V3_R_ERROR_CREATING_EXTENSION),
101 "error creating extension"},
102 {ERR_REASON(X509V3_R_ERROR_IN_EXTENSION), "error in extension"},
103 {ERR_REASON(X509V3_R_EXPECTED_A_SECTION_NAME), "expected a section name"},
104 {ERR_REASON(X509V3_R_EXTENSION_EXISTS), "extension exists"},
105 {ERR_REASON(X509V3_R_EXTENSION_NAME_ERROR), "extension name error"},
106 {ERR_REASON(X509V3_R_EXTENSION_NOT_FOUND), "extension not found"},
107 {ERR_REASON(X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED),
108 "extension setting not supported"},
109 {ERR_REASON(X509V3_R_EXTENSION_VALUE_ERROR), "extension value error"},
110 {ERR_REASON(X509V3_R_ILLEGAL_EMPTY_EXTENSION), "illegal empty extension"},
111 {ERR_REASON(X509V3_R_INCORRECT_POLICY_SYNTAX_TAG),
112 "incorrect policy syntax tag"},
113 {ERR_REASON(X509V3_R_INVALID_ASNUMBER), "invalid asnumber"},
114 {ERR_REASON(X509V3_R_INVALID_ASRANGE), "invalid asrange"},
115 {ERR_REASON(X509V3_R_INVALID_BOOLEAN_STRING), "invalid boolean string"},
116 {ERR_REASON(X509V3_R_INVALID_EXTENSION_STRING),
117 "invalid extension string"},
118 {ERR_REASON(X509V3_R_INVALID_INHERITANCE), "invalid inheritance"},
119 {ERR_REASON(X509V3_R_INVALID_IPADDRESS), "invalid ipaddress"},
120 {ERR_REASON(X509V3_R_INVALID_MULTIPLE_RDNS), "invalid multiple rdns"},
121 {ERR_REASON(X509V3_R_INVALID_NAME), "invalid name"},
122 {ERR_REASON(X509V3_R_INVALID_NULL_ARGUMENT), "invalid null argument"},
123 {ERR_REASON(X509V3_R_INVALID_NULL_NAME), "invalid null name"},
124 {ERR_REASON(X509V3_R_INVALID_NULL_VALUE), "invalid null value"},
125 {ERR_REASON(X509V3_R_INVALID_NUMBER), "invalid number"},
126 {ERR_REASON(X509V3_R_INVALID_NUMBERS), "invalid numbers"},
127 {ERR_REASON(X509V3_R_INVALID_OBJECT_IDENTIFIER),
128 "invalid object identifier"},
129 {ERR_REASON(X509V3_R_INVALID_OPTION), "invalid option"},
130 {ERR_REASON(X509V3_R_INVALID_POLICY_IDENTIFIER),
131 "invalid policy identifier"},
132 {ERR_REASON(X509V3_R_INVALID_PROXY_POLICY_SETTING),
133 "invalid proxy policy setting"},
134 {ERR_REASON(X509V3_R_INVALID_PURPOSE), "invalid purpose"},
135 {ERR_REASON(X509V3_R_INVALID_SAFI), "invalid safi"},
136 {ERR_REASON(X509V3_R_INVALID_SECTION), "invalid section"},
137 {ERR_REASON(X509V3_R_INVALID_SYNTAX), "invalid syntax"},
138 {ERR_REASON(X509V3_R_ISSUER_DECODE_ERROR), "issuer decode error"},
139 {ERR_REASON(X509V3_R_MISSING_VALUE), "missing value"},
140 {ERR_REASON(X509V3_R_NEED_ORGANIZATION_AND_NUMBERS),
141 "need organization and numbers"},
142 {ERR_REASON(X509V3_R_NO_CONFIG_DATABASE), "no config database"},
143 {ERR_REASON(X509V3_R_NO_ISSUER_CERTIFICATE), "no issuer certificate"},
144 {ERR_REASON(X509V3_R_NO_ISSUER_DETAILS), "no issuer details"},
145 {ERR_REASON(X509V3_R_NO_POLICY_IDENTIFIER), "no policy identifier"},
146 {ERR_REASON(X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED),
147 "no proxy cert policy language defined"},
148 {ERR_REASON(X509V3_R_NO_PUBLIC_KEY), "no public key"},
149 {ERR_REASON(X509V3_R_NO_SUBJECT_DETAILS), "no subject details"},
150 {ERR_REASON(X509V3_R_OPERATION_NOT_DEFINED), "operation not defined"},
151 {ERR_REASON(X509V3_R_OTHERNAME_ERROR), "othername error"},
152 {ERR_REASON(X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED),
153 "policy language already defined"},
154 {ERR_REASON(X509V3_R_POLICY_PATH_LENGTH), "policy path length"},
155 {ERR_REASON(X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED),
156 "policy path length already defined"},
157 {ERR_REASON(X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY),
158 "policy when proxy language requires no policy"},
159 {ERR_REASON(X509V3_R_SECTION_NOT_FOUND), "section not found"},
160 {ERR_REASON(X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS),
161 "unable to get issuer details"},
162 {ERR_REASON(X509V3_R_UNABLE_TO_GET_ISSUER_KEYID),
163 "unable to get issuer keyid"},
164 {ERR_REASON(X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT),
165 "unknown bit string argument"},
166 {ERR_REASON(X509V3_R_UNKNOWN_EXTENSION), "unknown extension"},
167 {ERR_REASON(X509V3_R_UNKNOWN_EXTENSION_NAME), "unknown extension name"},
168 {ERR_REASON(X509V3_R_UNKNOWN_OPTION), "unknown option"},
169 {ERR_REASON(X509V3_R_UNSUPPORTED_OPTION), "unsupported option"},
170 {ERR_REASON(X509V3_R_UNSUPPORTED_TYPE), "unsupported type"},
171 {ERR_REASON(X509V3_R_USER_TOO_LONG), "user too long"},
177 int ERR_load_X509V3_strings(void)
179 #ifndef OPENSSL_NO_ERR
181 if (ERR_func_error_string(X509V3_str_functs[0].error) == NULL) {
182 ERR_load_strings(0, X509V3_str_functs);
183 ERR_load_strings(0, X509V3_str_reasons);