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