xref: /freebsd/crypto/openssl/crypto/x509/v3err.c (revision b077aed33b7b6aefca7b17ddb250cf521f938613)
1*b077aed3SPierre Pronchery /*
2*b077aed3SPierre Pronchery  * Generated by util/mkerr.pl DO NOT EDIT
3*b077aed3SPierre Pronchery  * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4*b077aed3SPierre Pronchery  *
5*b077aed3SPierre Pronchery  * Licensed under the Apache License 2.0 (the "License").  You may not use
6*b077aed3SPierre Pronchery  * this file except in compliance with the License.  You can obtain a copy
7*b077aed3SPierre Pronchery  * in the file LICENSE in the source distribution or at
8*b077aed3SPierre Pronchery  * https://www.openssl.org/source/license.html
9*b077aed3SPierre Pronchery  */
10*b077aed3SPierre Pronchery 
11*b077aed3SPierre Pronchery #include <openssl/err.h>
12*b077aed3SPierre Pronchery #include <openssl/x509v3err.h>
13*b077aed3SPierre Pronchery #include "crypto/x509v3err.h"
14*b077aed3SPierre Pronchery 
15*b077aed3SPierre Pronchery #ifndef OPENSSL_NO_ERR
16*b077aed3SPierre Pronchery 
17*b077aed3SPierre Pronchery static const ERR_STRING_DATA X509V3_str_reasons[] = {
18*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BAD_IP_ADDRESS), "bad ip address"},
19*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BAD_OBJECT), "bad object"},
20*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BN_DEC2BN_ERROR), "bn dec2bn error"},
21*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_BN_TO_ASN1_INTEGER_ERROR),
22*b077aed3SPierre Pronchery     "bn to asn1 integer error"},
23*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DIRNAME_ERROR), "dirname error"},
24*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DISTPOINT_ALREADY_SET),
25*b077aed3SPierre Pronchery     "distpoint already set"},
26*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_DUPLICATE_ZONE_ID),
27*b077aed3SPierre Pronchery     "duplicate zone id"},
28*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EMPTY_KEY_USAGE), "empty key usage"},
29*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_CONVERTING_ZONE),
30*b077aed3SPierre Pronchery     "error converting zone"},
31*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_CREATING_EXTENSION),
32*b077aed3SPierre Pronchery     "error creating extension"},
33*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ERROR_IN_EXTENSION),
34*b077aed3SPierre Pronchery     "error in extension"},
35*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXPECTED_A_SECTION_NAME),
36*b077aed3SPierre Pronchery     "expected a section name"},
37*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_EXISTS),
38*b077aed3SPierre Pronchery     "extension exists"},
39*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_NAME_ERROR),
40*b077aed3SPierre Pronchery     "extension name error"},
41*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_NOT_FOUND),
42*b077aed3SPierre Pronchery     "extension not found"},
43*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED),
44*b077aed3SPierre Pronchery     "extension setting not supported"},
45*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_EXTENSION_VALUE_ERROR),
46*b077aed3SPierre Pronchery     "extension value error"},
47*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ILLEGAL_EMPTY_EXTENSION),
48*b077aed3SPierre Pronchery     "illegal empty extension"},
49*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INCORRECT_POLICY_SYNTAX_TAG),
50*b077aed3SPierre Pronchery     "incorrect policy syntax tag"},
51*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_ASNUMBER),
52*b077aed3SPierre Pronchery     "invalid asnumber"},
53*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_ASRANGE), "invalid asrange"},
54*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_BOOLEAN_STRING),
55*b077aed3SPierre Pronchery     "invalid boolean string"},
56*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_CERTIFICATE),
57*b077aed3SPierre Pronchery     "invalid certificate"},
58*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_EMPTY_NAME),
59*b077aed3SPierre Pronchery     "invalid empty name"},
60*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_EXTENSION_STRING),
61*b077aed3SPierre Pronchery     "invalid extension string"},
62*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_INHERITANCE),
63*b077aed3SPierre Pronchery     "invalid inheritance"},
64*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_IPADDRESS),
65*b077aed3SPierre Pronchery     "invalid ipaddress"},
66*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_MULTIPLE_RDNS),
67*b077aed3SPierre Pronchery     "invalid multiple rdns"},
68*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NAME), "invalid name"},
69*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NULL_ARGUMENT),
70*b077aed3SPierre Pronchery     "invalid null argument"},
71*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NULL_VALUE),
72*b077aed3SPierre Pronchery     "invalid null value"},
73*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NUMBER), "invalid number"},
74*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_NUMBERS), "invalid numbers"},
75*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_OBJECT_IDENTIFIER),
76*b077aed3SPierre Pronchery     "invalid object identifier"},
77*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_OPTION), "invalid option"},
78*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_POLICY_IDENTIFIER),
79*b077aed3SPierre Pronchery     "invalid policy identifier"},
80*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_PROXY_POLICY_SETTING),
81*b077aed3SPierre Pronchery     "invalid proxy policy setting"},
82*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_PURPOSE), "invalid purpose"},
83*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SAFI), "invalid safi"},
84*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SECTION), "invalid section"},
85*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_INVALID_SYNTAX), "invalid syntax"},
86*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_ISSUER_DECODE_ERROR),
87*b077aed3SPierre Pronchery     "issuer decode error"},
88*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_MISSING_VALUE), "missing value"},
89*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NEED_ORGANIZATION_AND_NUMBERS),
90*b077aed3SPierre Pronchery     "need organization and numbers"},
91*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NEGATIVE_PATHLEN),
92*b077aed3SPierre Pronchery     "negative pathlen"},
93*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_CONFIG_DATABASE),
94*b077aed3SPierre Pronchery     "no config database"},
95*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_ISSUER_CERTIFICATE),
96*b077aed3SPierre Pronchery     "no issuer certificate"},
97*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_ISSUER_DETAILS),
98*b077aed3SPierre Pronchery     "no issuer details"},
99*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_POLICY_IDENTIFIER),
100*b077aed3SPierre Pronchery     "no policy identifier"},
101*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED),
102*b077aed3SPierre Pronchery     "no proxy cert policy language defined"},
103*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_PUBLIC_KEY), "no public key"},
104*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_NO_SUBJECT_DETAILS),
105*b077aed3SPierre Pronchery     "no subject details"},
106*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_OPERATION_NOT_DEFINED),
107*b077aed3SPierre Pronchery     "operation not defined"},
108*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_OTHERNAME_ERROR), "othername error"},
109*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED),
110*b077aed3SPierre Pronchery     "policy language already defined"},
111*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_PATH_LENGTH),
112*b077aed3SPierre Pronchery     "policy path length"},
113*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED),
114*b077aed3SPierre Pronchery     "policy path length already defined"},
115*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY),
116*b077aed3SPierre Pronchery     "policy when proxy language requires no policy"},
117*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_SECTION_NOT_FOUND),
118*b077aed3SPierre Pronchery     "section not found"},
119*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS),
120*b077aed3SPierre Pronchery     "unable to get issuer details"},
121*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNABLE_TO_GET_ISSUER_KEYID),
122*b077aed3SPierre Pronchery     "unable to get issuer keyid"},
123*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT),
124*b077aed3SPierre Pronchery     "unknown bit string argument"},
125*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_EXTENSION),
126*b077aed3SPierre Pronchery     "unknown extension"},
127*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_EXTENSION_NAME),
128*b077aed3SPierre Pronchery     "unknown extension name"},
129*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNKNOWN_OPTION), "unknown option"},
130*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNSUPPORTED_OPTION),
131*b077aed3SPierre Pronchery     "unsupported option"},
132*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_UNSUPPORTED_TYPE),
133*b077aed3SPierre Pronchery     "unsupported type"},
134*b077aed3SPierre Pronchery     {ERR_PACK(ERR_LIB_X509V3, 0, X509V3_R_USER_TOO_LONG), "user too long"},
135*b077aed3SPierre Pronchery     {0, NULL}
136*b077aed3SPierre Pronchery };
137*b077aed3SPierre Pronchery 
138*b077aed3SPierre Pronchery #endif
139*b077aed3SPierre Pronchery 
ossl_err_load_X509V3_strings(void)140*b077aed3SPierre Pronchery int ossl_err_load_X509V3_strings(void)
141*b077aed3SPierre Pronchery {
142*b077aed3SPierre Pronchery #ifndef OPENSSL_NO_ERR
143*b077aed3SPierre Pronchery     if (ERR_reason_error_string(X509V3_str_reasons[0].error) == NULL)
144*b077aed3SPierre Pronchery         ERR_load_strings_const(X509V3_str_reasons);
145*b077aed3SPierre Pronchery #endif
146*b077aed3SPierre Pronchery     return 1;
147*b077aed3SPierre Pronchery }
148