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