xref: /aosp_15_r20/external/boringssl/src/include/openssl/x509v3_errors.h (revision 8fb009dc861624b67b6cdb62ea21f0f22d0c584b)
1 /* Written by Dr Stephen N Henson ([email protected]) for the OpenSSL
2  * project 1999. */
3 /* ====================================================================
4  * Copyright (c) 1999-2004 The OpenSSL Project.  All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  *
10  * 1. Redistributions of source code must retain the above copyright
11  *    notice, this list of conditions and the following disclaimer.
12  *
13  * 2. Redistributions in binary form must reproduce the above copyright
14  *    notice, this list of conditions and the following disclaimer in
15  *    the documentation and/or other materials provided with the
16  *    distribution.
17  *
18  * 3. All advertising materials mentioning features or use of this
19  *    software must display the following acknowledgment:
20  *    "This product includes software developed by the OpenSSL Project
21  *    for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
22  *
23  * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
24  *    endorse or promote products derived from this software without
25  *    prior written permission. For written permission, please contact
26  *    [email protected].
27  *
28  * 5. Products derived from this software may not be called "OpenSSL"
29  *    nor may "OpenSSL" appear in their names without prior written
30  *    permission of the OpenSSL Project.
31  *
32  * 6. Redistributions of any form whatsoever must retain the following
33  *    acknowledgment:
34  *    "This product includes software developed by the OpenSSL Project
35  *    for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
36  *
37  * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
38  * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
39  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
40  * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE OpenSSL PROJECT OR
41  * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
42  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
43  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
44  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
45  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
46  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
47  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
48  * OF THE POSSIBILITY OF SUCH DAMAGE.
49  * ====================================================================
50  *
51  * This product includes cryptographic software written by Eric Young
52  * ([email protected]).  This product includes software written by Tim
53  * Hudson ([email protected]). */
54 
55 #ifndef OPENSSL_HEADER_X509V3_ERRORS_H
56 #define OPENSSL_HEADER_X509V3_ERRORS_H
57 
58 #define X509V3_R_BAD_IP_ADDRESS 100
59 #define X509V3_R_BAD_OBJECT 101
60 #define X509V3_R_BN_DEC2BN_ERROR 102
61 #define X509V3_R_BN_TO_ASN1_INTEGER_ERROR 103
62 #define X509V3_R_CANNOT_FIND_FREE_FUNCTION 104
63 #define X509V3_R_DIRNAME_ERROR 105
64 #define X509V3_R_DISTPOINT_ALREADY_SET 106
65 #define X509V3_R_DUPLICATE_ZONE_ID 107
66 #define X509V3_R_ERROR_CONVERTING_ZONE 108
67 #define X509V3_R_ERROR_CREATING_EXTENSION 109
68 #define X509V3_R_ERROR_IN_EXTENSION 110
69 #define X509V3_R_EXPECTED_A_SECTION_NAME 111
70 #define X509V3_R_EXTENSION_EXISTS 112
71 #define X509V3_R_EXTENSION_NAME_ERROR 113
72 #define X509V3_R_EXTENSION_NOT_FOUND 114
73 #define X509V3_R_EXTENSION_SETTING_NOT_SUPPORTED 115
74 #define X509V3_R_EXTENSION_VALUE_ERROR 116
75 #define X509V3_R_ILLEGAL_EMPTY_EXTENSION 117
76 #define X509V3_R_ILLEGAL_HEX_DIGIT 118
77 #define X509V3_R_INCORRECT_POLICY_SYNTAX_TAG 119
78 #define X509V3_R_INVALID_BOOLEAN_STRING 120
79 #define X509V3_R_INVALID_EXTENSION_STRING 121
80 #define X509V3_R_INVALID_MULTIPLE_RDNS 122
81 #define X509V3_R_INVALID_NAME 123
82 #define X509V3_R_INVALID_NULL_ARGUMENT 124
83 #define X509V3_R_INVALID_NULL_NAME 125
84 #define X509V3_R_INVALID_NULL_VALUE 126
85 #define X509V3_R_INVALID_NUMBER 127
86 #define X509V3_R_INVALID_NUMBERS 128
87 #define X509V3_R_INVALID_OBJECT_IDENTIFIER 129
88 #define X509V3_R_INVALID_OPTION 130
89 #define X509V3_R_INVALID_POLICY_IDENTIFIER 131
90 #define X509V3_R_INVALID_PROXY_POLICY_SETTING 132
91 #define X509V3_R_INVALID_PURPOSE 133
92 #define X509V3_R_INVALID_SECTION 134
93 #define X509V3_R_INVALID_SYNTAX 135
94 #define X509V3_R_ISSUER_DECODE_ERROR 136
95 #define X509V3_R_MISSING_VALUE 137
96 #define X509V3_R_NEED_ORGANIZATION_AND_NUMBERS 138
97 #define X509V3_R_NO_CONFIG_DATABASE 139
98 #define X509V3_R_NO_ISSUER_CERTIFICATE 140
99 #define X509V3_R_NO_ISSUER_DETAILS 141
100 #define X509V3_R_NO_POLICY_IDENTIFIER 142
101 #define X509V3_R_NO_PROXY_CERT_POLICY_LANGUAGE_DEFINED 143
102 #define X509V3_R_NO_PUBLIC_KEY 144
103 #define X509V3_R_NO_SUBJECT_DETAILS 145
104 #define X509V3_R_ODD_NUMBER_OF_DIGITS 146
105 #define X509V3_R_OPERATION_NOT_DEFINED 147
106 #define X509V3_R_OTHERNAME_ERROR 148
107 #define X509V3_R_POLICY_LANGUAGE_ALREADY_DEFINED 149
108 #define X509V3_R_POLICY_PATH_LENGTH 150
109 #define X509V3_R_POLICY_PATH_LENGTH_ALREADY_DEFINED 151
110 #define X509V3_R_POLICY_WHEN_PROXY_LANGUAGE_REQUIRES_NO_POLICY 152
111 #define X509V3_R_SECTION_NOT_FOUND 153
112 #define X509V3_R_UNABLE_TO_GET_ISSUER_DETAILS 154
113 #define X509V3_R_UNABLE_TO_GET_ISSUER_KEYID 155
114 #define X509V3_R_UNKNOWN_BIT_STRING_ARGUMENT 156
115 #define X509V3_R_UNKNOWN_EXTENSION 157
116 #define X509V3_R_UNKNOWN_EXTENSION_NAME 158
117 #define X509V3_R_UNKNOWN_OPTION 159
118 #define X509V3_R_UNSUPPORTED_OPTION 160
119 #define X509V3_R_UNSUPPORTED_TYPE 161
120 #define X509V3_R_USER_TOO_LONG 162
121 #define X509V3_R_INVALID_VALUE 163
122 #define X509V3_R_TRAILING_DATA_IN_EXTENSION 164
123 
124 #endif  // OPENSSL_HEADER_X509V3_ERRORS_H
125