]>
Commit | Line | Data |
---|---|---|
d2e9e320 | 1 | /* |
0cd0a820 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
52df25cf | 3 | * Copyright 1995-2017 The OpenSSL Project Authors. All Rights Reserved. |
6d311938 | 4 | * |
d2e9e320 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 | |
9aeaf1b4 | 9 | */ |
6d311938 | 10 | |
ec577822 | 11 | #include <openssl/err.h> |
52df25cf | 12 | #include <openssl/x509v3err.h> |
9aeaf1b4 | 13 | |
cf1b7d96 | 14 | #ifndef OPENSSL_NO_ERR |
29dc3508 | 15 | |
52df25cf RS |
16 | static const ERR_STRING_DATA X509V3_str_functs[] = { |
17 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_A2I_GENERAL_NAME, 0), | |
18 | "a2i_GENERAL_NAME"}, | |
19 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_ADDR_VALIDATE_PATH_INTERNAL, 0), | |
0cd0a820 | 20 | "addr_validate_path_internal"}, |
52df25cf | 21 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_ASIDENTIFIERCHOICE_CANONIZE, 0), |
b8fb5989 | 22 | "ASIdentifierChoice_canonize"}, |
52df25cf | 23 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_ASIDENTIFIERCHOICE_IS_CANONICAL, 0), |
b8fb5989 | 24 | "ASIdentifierChoice_is_canonical"}, |
10a3195f DB |
25 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_BIGNUM_TO_STRING, 0), |
26 | "bignum_to_string"}, | |
52df25cf RS |
27 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_COPY_EMAIL, 0), "copy_email"}, |
28 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_COPY_ISSUER, 0), "copy_issuer"}, | |
29 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_DO_DIRNAME, 0), "do_dirname"}, | |
30 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_DO_EXT_I2D, 0), "do_ext_i2d"}, | |
31 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_DO_EXT_NCONF, 0), "do_ext_nconf"}, | |
32 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_GNAMES_FROM_SECTNAME, 0), | |
33 | "gnames_from_sectname"}, | |
34 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_I2S_ASN1_ENUMERATED, 0), | |
35 | "i2s_ASN1_ENUMERATED"}, | |
36 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_I2S_ASN1_IA5STRING, 0), | |
37 | "i2s_ASN1_IA5STRING"}, | |
38 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_I2S_ASN1_INTEGER, 0), | |
39 | "i2s_ASN1_INTEGER"}, | |
40 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_I2V_AUTHORITY_INFO_ACCESS, 0), | |
b8fb5989 | 41 | "i2v_AUTHORITY_INFO_ACCESS"}, |
52df25cf RS |
42 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_NOTICE_SECTION, 0), "notice_section"}, |
43 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_NREF_NOS, 0), "nref_nos"}, | |
44 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_POLICY_SECTION, 0), "policy_section"}, | |
45 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_PROCESS_PCI_VALUE, 0), | |
46 | "process_pci_value"}, | |
47 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_R2I_CERTPOL, 0), "r2i_certpol"}, | |
48 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_R2I_PCI, 0), "r2i_pci"}, | |
49 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_S2I_ASN1_IA5STRING, 0), | |
50 | "s2i_ASN1_IA5STRING"}, | |
51 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_S2I_ASN1_INTEGER, 0), | |
52 | "s2i_ASN1_INTEGER"}, | |
53 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_S2I_ASN1_OCTET_STRING, 0), | |
54 | "s2i_ASN1_OCTET_STRING"}, | |
55 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_S2I_SKEY_ID, 0), "s2i_skey_id"}, | |
56 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SET_DIST_POINT_NAME, 0), | |
57 | "set_dist_point_name"}, | |
58 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SXNET_ADD_ID_ASC, 0), | |
59 | "SXNET_add_id_asc"}, | |
60 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SXNET_ADD_ID_INTEGER, 0), | |
61 | "SXNET_add_id_INTEGER"}, | |
62 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SXNET_ADD_ID_ULONG, 0), | |
63 | "SXNET_add_id_ulong"}, | |
64 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SXNET_GET_ID_ASC, 0), | |
65 | "SXNET_get_id_asc"}, | |
66 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_SXNET_GET_ID_ULONG, 0), | |
67 | "SXNET_get_id_ulong"}, | |
68 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_ASIDENTIFIERS, 0), | |
69 | "v2i_ASIdentifiers"}, | |
70 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_ASN1_BIT_STRING, 0), | |
71 | "v2i_ASN1_BIT_STRING"}, | |
72 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_AUTHORITY_INFO_ACCESS, 0), | |
b8fb5989 | 73 | "v2i_AUTHORITY_INFO_ACCESS"}, |
52df25cf RS |
74 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_AUTHORITY_KEYID, 0), |
75 | "v2i_AUTHORITY_KEYID"}, | |
76 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_BASIC_CONSTRAINTS, 0), | |
77 | "v2i_BASIC_CONSTRAINTS"}, | |
78 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_CRLD, 0), "v2i_crld"}, | |
79 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_EXTENDED_KEY_USAGE, 0), | |
80 | "v2i_EXTENDED_KEY_USAGE"}, | |
81 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_GENERAL_NAMES, 0), | |
82 | "v2i_GENERAL_NAMES"}, | |
83 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_GENERAL_NAME_EX, 0), | |
84 | "v2i_GENERAL_NAME_ex"}, | |
85 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_IDP, 0), "v2i_idp"}, | |
86 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_IPADDRBLOCKS, 0), | |
87 | "v2i_IPAddrBlocks"}, | |
88 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_ISSUER_ALT, 0), "v2i_issuer_alt"}, | |
89 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_NAME_CONSTRAINTS, 0), | |
90 | "v2i_NAME_CONSTRAINTS"}, | |
91 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_POLICY_CONSTRAINTS, 0), | |
92 | "v2i_POLICY_CONSTRAINTS"}, | |
93 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_POLICY_MAPPINGS, 0), | |
94 | "v2i_POLICY_MAPPINGS"}, | |
95 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_SUBJECT_ALT, 0), "v2i_subject_alt"}, | |
96 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V2I_TLS_FEATURE, 0), "v2i_TLS_FEATURE"}, | |
97 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_V3_GENERIC_EXTENSION, 0), | |
98 | "v3_generic_extension"}, | |
99 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_ADD1_I2D, 0), "X509V3_add1_i2d"}, | |
100 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_ADD_VALUE, 0), | |
101 | "X509V3_add_value"}, | |
102 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_EXT_ADD, 0), "X509V3_EXT_add"}, | |
103 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_EXT_ADD_ALIAS, 0), | |
104 | "X509V3_EXT_add_alias"}, | |
105 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_EXT_I2D, 0), "X509V3_EXT_i2d"}, | |
106 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_EXT_NCONF, 0), | |
107 | "X509V3_EXT_nconf"}, | |
108 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_GET_SECTION, 0), | |
109 | "X509V3_get_section"}, | |
110 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_GET_STRING, 0), | |
111 | "X509V3_get_string"}, | |
112 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_GET_VALUE_BOOL, 0), | |
113 | "X509V3_get_value_bool"}, | |
114 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509V3_PARSE_LIST, 0), | |
115 | "X509V3_parse_list"}, | |
116 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509_PURPOSE_ADD, 0), | |
117 | "X509_PURPOSE_add"}, | |
118 | {ERR_PACK(ERR_LIB_X509V3, X509V3_F_X509_PURPOSE_SET, 0), | |
119 | "X509_PURPOSE_set"}, | |
0f113f3e MC |
120 | {0, NULL} |
121 | }; | |
9aeaf1b4 | 122 | |
52df25cf RS |
123 | static const ERR_STRING_DATA X509V3_str_reasons[] = { |
124 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BAD_IP_ADDRESS), "bad ip address"}, | |
125 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BAD_OBJECT), "bad object"}, | |
126 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BN_DEC2BN_ERROR), "bn dec2bn error"}, | |
127 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BN_TO_ASN1_INTEGER_ERROR), | |
128 | "bn to asn1 integer error"}, | |
129 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DIRNAME_ERROR), "dirname error"}, | |
130 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DISTPOINT_ALREADY_SET), | |
131 | "distpoint already set"}, | |
132 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DUPLICATE_ZONE_ID), | |
133 | "duplicate zone id"}, | |
134 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_CONVERTING_ZONE), | |
135 | "error converting zone"}, | |
136 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_CREATING_EXTENSION), | |
137 | "error creating extension"}, | |
138 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_IN_EXTENSION), | |
139 | "error in extension"}, | |
140 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXPECTED_A_SECTION_NAME), | |
141 | "expected a section name"}, | |
142 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_EXISTS), | |
143 | "extension exists"}, | |
144 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_NAME_ERROR), | |
145 | "extension name error"}, | |
146 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_NOT_FOUND), | |
147 | "extension not found"}, | |
148 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED), | |
149 | "extension setting not supported"}, | |
150 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_VALUE_ERROR), | |
151 | "extension value error"}, | |
152 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ILLEGAL_EMPTY_EXTENSION), | |
153 | "illegal empty extension"}, | |
154 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INCORRECT_POLICY_SYNTAX_TAG), | |
155 | "incorrect policy syntax tag"}, | |
156 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_ASNUMBER), | |
157 | "invalid asnumber"}, | |
158 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_ASRANGE), "invalid asrange"}, | |
159 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_BOOLEAN_STRING), | |
160 | "invalid boolean string"}, | |
161 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_EXTENSION_STRING), | |
162 | "invalid extension string"}, | |
163 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_INHERITANCE), | |
164 | "invalid inheritance"}, | |
165 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_IPADDRESS), | |
166 | "invalid ipaddress"}, | |
167 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_MULTIPLE_RDNS), | |
168 | "invalid multiple rdns"}, | |
169 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NAME), "invalid name"}, | |
170 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NULL_ARGUMENT), | |
171 | "invalid null argument"}, | |
172 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NULL_NAME), | |
173 | "invalid null name"}, | |
174 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NULL_VALUE), | |
175 | "invalid null value"}, | |
176 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NUMBER), "invalid number"}, | |
177 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NUMBERS), "invalid numbers"}, | |
178 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_OBJECT_IDENTIFIER), | |
179 | "invalid object identifier"}, | |
180 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_OPTION), "invalid option"}, | |
181 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_POLICY_IDENTIFIER), | |
182 | "invalid policy identifier"}, | |
183 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_PROXY_POLICY_SETTING), | |
184 | "invalid proxy policy setting"}, | |
185 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_PURPOSE), "invalid purpose"}, | |
186 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SAFI), "invalid safi"}, | |
187 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SECTION), "invalid section"}, | |
188 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SYNTAX), "invalid syntax"}, | |
189 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ISSUER_DECODE_ERROR), | |
190 | "issuer decode error"}, | |
191 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_MISSING_VALUE), "missing value"}, | |
192 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NEED_ORGANIZATION_AND_NUMBERS), | |
193 | "need organization and numbers"}, | |
194 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_CONFIG_DATABASE), | |
195 | "no config database"}, | |
196 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_ISSUER_CERTIFICATE), | |
197 | "no issuer certificate"}, | |
198 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_ISSUER_DETAILS), | |
199 | "no issuer details"}, | |
200 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_POLICY_IDENTIFIER), | |
201 | "no policy identifier"}, | |
202 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED), | |
203 | "no proxy cert policy language defined"}, | |
204 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_PUBLIC_KEY), "no public key"}, | |
205 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_SUBJECT_DETAILS), | |
206 | "no subject details"}, | |
207 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_OPERATION_NOT_DEFINED), | |
208 | "operation not defined"}, | |
209 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_OTHERNAME_ERROR), "othername error"}, | |
210 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED), | |
211 | "policy language already defined"}, | |
212 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_PATH_LENGTH), | |
213 | "policy path length"}, | |
214 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED), | |
215 | "policy path length already defined"}, | |
216 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY), | |
217 | "policy when proxy language requires no policy"}, | |
218 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_SECTION_NOT_FOUND), | |
219 | "section not found"}, | |
220 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS), | |
221 | "unable to get issuer details"}, | |
222 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNABLE_TO_GET_ISSUER_KEYID), | |
223 | "unable to get issuer keyid"}, | |
224 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT), | |
225 | "unknown bit string argument"}, | |
226 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_EXTENSION), | |
227 | "unknown extension"}, | |
228 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_EXTENSION_NAME), | |
229 | "unknown extension name"}, | |
230 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_OPTION), "unknown option"}, | |
231 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNSUPPORTED_OPTION), | |
232 | "unsupported option"}, | |
233 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNSUPPORTED_TYPE), | |
234 | "unsupported type"}, | |
235 | {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_USER_TOO_LONG), "user too long"}, | |
0f113f3e MC |
236 | {0, NULL} |
237 | }; | |
9aeaf1b4 DSH |
238 | |
239 | #endif | |
240 | ||
69588edb | 241 | int ERR_load_X509V3_strings(void) |
0f113f3e | 242 | { |
47a9d527 | 243 | #ifndef OPENSSL_NO_ERR |
0f113f3e | 244 | if (ERR_func_error_string(X509V3_str_functs[0].error) == NULL) { |
52df25cf RS |
245 | ERR_load_strings_const(X509V3_str_functs); |
246 | ERR_load_strings_const(X509V3_str_reasons); | |
0f113f3e | 247 | } |
47a9d527 | 248 | #endif |
69588edb | 249 | return 1; |
0f113f3e | 250 | } |