1e1051a39Sopenharmony_ci/*
2e1051a39Sopenharmony_ci * Generated by util/mkerr.pl DO NOT EDIT
3e1051a39Sopenharmony_ci * Copyright 1995-2023 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/cmperr.h>
13e1051a39Sopenharmony_ci#include "crypto/cmperr.h"
14e1051a39Sopenharmony_ci
15e1051a39Sopenharmony_ci#ifndef OPENSSL_NO_CMP
16e1051a39Sopenharmony_ci
17e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
18e1051a39Sopenharmony_ci
19e1051a39Sopenharmony_cistatic const ERR_STRING_DATA CMP_str_reasons[] = {
20e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ALGORITHM_NOT_SUPPORTED),
21e1051a39Sopenharmony_ci    "algorithm not supported"},
22e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_BAD_CHECKAFTER_IN_POLLREP),
23e1051a39Sopenharmony_ci    "bad checkafter in pollrep"},
24e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_BAD_REQUEST_ID), "bad request id"},
25e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTHASH_UNMATCHED), "certhash unmatched"},
26e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTID_NOT_FOUND), "certid not found"},
27e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTIFICATE_NOT_ACCEPTED),
28e1051a39Sopenharmony_ci    "certificate not accepted"},
29e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTIFICATE_NOT_FOUND),
30e1051a39Sopenharmony_ci    "certificate not found"},
31e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTREQMSG_NOT_FOUND),
32e1051a39Sopenharmony_ci    "certreqmsg not found"},
33e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTRESPONSE_NOT_FOUND),
34e1051a39Sopenharmony_ci    "certresponse not found"},
35e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERT_AND_KEY_DO_NOT_MATCH),
36e1051a39Sopenharmony_ci    "cert and key do not match"},
37e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CHECKAFTER_OUT_OF_RANGE),
38e1051a39Sopenharmony_ci    "checkafter out of range"},
39e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ENCOUNTERED_KEYUPDATEWARNING),
40e1051a39Sopenharmony_ci    "encountered keyupdatewarning"},
41e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ENCOUNTERED_WAITING),
42e1051a39Sopenharmony_ci    "encountered waiting"},
43e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CALCULATING_PROTECTION),
44e1051a39Sopenharmony_ci    "error calculating protection"},
45e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTCONF),
46e1051a39Sopenharmony_ci    "error creating certconf"},
47e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTREP),
48e1051a39Sopenharmony_ci    "error creating certrep"},
49e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTREQ),
50e1051a39Sopenharmony_ci    "error creating certreq"},
51e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_ERROR),
52e1051a39Sopenharmony_ci    "error creating error"},
53e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENM),
54e1051a39Sopenharmony_ci    "error creating genm"},
55e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENP),
56e1051a39Sopenharmony_ci    "error creating genp"},
57e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_PKICONF),
58e1051a39Sopenharmony_ci    "error creating pkiconf"},
59e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREP),
60e1051a39Sopenharmony_ci    "error creating pollrep"},
61e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREQ),
62e1051a39Sopenharmony_ci    "error creating pollreq"},
63e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RP), "error creating rp"},
64e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RR), "error creating rr"},
65e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PARSING_PKISTATUS),
66e1051a39Sopenharmony_ci    "error parsing pkistatus"},
67e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PROCESSING_MESSAGE),
68e1051a39Sopenharmony_ci    "error processing message"},
69e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PROTECTING_MESSAGE),
70e1051a39Sopenharmony_ci    "error protecting message"},
71e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_SETTING_CERTHASH),
72e1051a39Sopenharmony_ci    "error setting certhash"},
73e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_UNEXPECTED_CERTCONF),
74e1051a39Sopenharmony_ci    "error unexpected certconf"},
75e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_VALIDATING_PROTECTION),
76e1051a39Sopenharmony_ci    "error validating protection"},
77e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_VALIDATING_SIGNATURE),
78e1051a39Sopenharmony_ci    "error validating signature"},
79e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILED_BUILDING_OWN_CHAIN),
80e1051a39Sopenharmony_ci    "failed building own chain"},
81e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILED_EXTRACTING_PUBKEY),
82e1051a39Sopenharmony_ci    "failed extracting pubkey"},
83e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILURE_OBTAINING_RANDOM),
84e1051a39Sopenharmony_ci    "failure obtaining random"},
85e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAIL_INFO_OUT_OF_RANGE),
86e1051a39Sopenharmony_ci    "fail info out of range"},
87e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_ARGS), "invalid args"},
88e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_OPTION), "invalid option"},
89e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_CERTID), "missing certid"},
90e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_KEY_INPUT_FOR_CREATING_PROTECTION),
91e1051a39Sopenharmony_ci    "missing key input for creating protection"},
92e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_KEY_USAGE_DIGITALSIGNATURE),
93e1051a39Sopenharmony_ci    "missing key usage digitalsignature"},
94e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_P10CSR), "missing p10csr"},
95e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PBM_SECRET), "missing pbm secret"},
96e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PRIVATE_KEY),
97e1051a39Sopenharmony_ci    "missing private key"},
98e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PRIVATE_KEY_FOR_POPO),
99e1051a39Sopenharmony_ci    "missing private key for popo"},
100e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PROTECTION), "missing protection"},
101e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PUBLIC_KEY), "missing public key"},
102e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_REFERENCE_CERT),
103e1051a39Sopenharmony_ci    "missing reference cert"},
104e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_SECRET), "missing secret"},
105e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_SENDER_IDENTIFICATION),
106e1051a39Sopenharmony_ci    "missing sender identification"},
107e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_TRUST_ANCHOR),
108e1051a39Sopenharmony_ci    "missing trust anchor"},
109e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_TRUST_STORE),
110e1051a39Sopenharmony_ci    "missing trust store"},
111e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_REQUESTS_NOT_SUPPORTED),
112e1051a39Sopenharmony_ci    "multiple requests not supported"},
113e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_RESPONSES_NOT_SUPPORTED),
114e1051a39Sopenharmony_ci    "multiple responses not supported"},
115e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_SAN_SOURCES),
116e1051a39Sopenharmony_ci    "multiple san sources"},
117e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NO_STDIO), "no stdio"},
118e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NO_SUITABLE_SENDER_CERT),
119e1051a39Sopenharmony_ci    "no suitable sender cert"},
120e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NULL_ARGUMENT), "null argument"},
121e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_PKIBODY_ERROR), "pkibody error"},
122e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_PKISTATUSINFO_NOT_FOUND),
123e1051a39Sopenharmony_ci    "pkistatusinfo not found"},
124e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_POLLING_FAILED), "polling failed"},
125e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_POTENTIALLY_INVALID_CERTIFICATE),
126e1051a39Sopenharmony_ci    "potentially invalid certificate"},
127e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_RECEIVED_ERROR), "received error"},
128e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_RECIPNONCE_UNMATCHED),
129e1051a39Sopenharmony_ci    "recipnonce unmatched"},
130e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_REQUEST_NOT_ACCEPTED),
131e1051a39Sopenharmony_ci    "request not accepted"},
132e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_REQUEST_REJECTED_BY_SERVER),
133e1051a39Sopenharmony_ci    "request rejected by server"},
134e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_SENDER_GENERALNAME_TYPE_NOT_SUPPORTED),
135e1051a39Sopenharmony_ci    "sender generalname type not supported"},
136e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_SRVCERT_DOES_NOT_VALIDATE_MSG),
137e1051a39Sopenharmony_ci    "srvcert does not validate msg"},
138e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TOTAL_TIMEOUT), "total timeout"},
139e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TRANSACTIONID_UNMATCHED),
140e1051a39Sopenharmony_ci    "transactionid unmatched"},
141e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TRANSFER_ERROR), "transfer error"},
142e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PKIBODY), "unexpected pkibody"},
143e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PKISTATUS),
144e1051a39Sopenharmony_ci    "unexpected pkistatus"},
145e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PVNO), "unexpected pvno"},
146e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_ALGORITHM_ID),
147e1051a39Sopenharmony_ci    "unknown algorithm id"},
148e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_CERT_TYPE), "unknown cert type"},
149e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_PKISTATUS), "unknown pkistatus"},
150e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_ALGORITHM),
151e1051a39Sopenharmony_ci    "unsupported algorithm"},
152e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_KEY_TYPE),
153e1051a39Sopenharmony_ci    "unsupported key type"},
154e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_PROTECTION_ALG_DHBASEDMAC),
155e1051a39Sopenharmony_ci    "unsupported protection alg dhbasedmac"},
156e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_VALUE_TOO_LARGE), "value too large"},
157e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_VALUE_TOO_SMALL), "value too small"},
158e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_ALGORITHM_OID),
159e1051a39Sopenharmony_ci    "wrong algorithm oid"},
160e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_CERTID), "wrong certid"},
161e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_CERTID_IN_RP), "wrong certid in rp"},
162e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_PBM_VALUE), "wrong pbm value"},
163e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_RP_COMPONENT_COUNT),
164e1051a39Sopenharmony_ci    "wrong rp component count"},
165e1051a39Sopenharmony_ci    {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_SERIAL_IN_RP), "wrong serial in rp"},
166e1051a39Sopenharmony_ci    {0, NULL}
167e1051a39Sopenharmony_ci};
168e1051a39Sopenharmony_ci
169e1051a39Sopenharmony_ci# endif
170e1051a39Sopenharmony_ci
171e1051a39Sopenharmony_ciint ossl_err_load_CMP_strings(void)
172e1051a39Sopenharmony_ci{
173e1051a39Sopenharmony_ci# ifndef OPENSSL_NO_ERR
174e1051a39Sopenharmony_ci    if (ERR_reason_error_string(CMP_str_reasons[0].error) == NULL)
175e1051a39Sopenharmony_ci        ERR_load_strings_const(CMP_str_reasons);
176e1051a39Sopenharmony_ci# endif
177e1051a39Sopenharmony_ci    return 1;
178e1051a39Sopenharmony_ci}
179e1051a39Sopenharmony_ci#else
180e1051a39Sopenharmony_ciNON_EMPTY_TRANSLATION_UNIT
181e1051a39Sopenharmony_ci#endif
182