]>
Commit | Line | Data |
---|---|---|
8869ad4a | 1 | /* |
3dbc5156 | 2 | * Generated by util/mkerr.pl DO NOT EDIT |
b6461792 | 3 | * Copyright 1995-2024 The OpenSSL Project Authors. All Rights Reserved. |
8869ad4a AK |
4 | * |
5 | * Licensed under the Apache License 2.0 (the "License"). You may not use | |
6 | * this file except in compliance with the License. You can obtain a copy | |
7 | * in the file LICENSE in the source distribution or at | |
8 | * https://www.openssl.org/source/license.html | |
9 | */ | |
10 | ||
11 | #include <openssl/err.h> | |
12 | #include <openssl/cmperr.h> | |
14a6c6a4 | 13 | #include "crypto/cmperr.h" |
8869ad4a | 14 | |
14a6c6a4 RL |
15 | #ifndef OPENSSL_NO_CMP |
16 | ||
17 | # ifndef OPENSSL_NO_ERR | |
8869ad4a | 18 | |
8869ad4a | 19 | static const ERR_STRING_DATA CMP_str_reasons[] = { |
31b28ad9 DDO |
20 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ALGORITHM_NOT_SUPPORTED), |
21 | "algorithm not supported"}, | |
7e765f46 DDO |
22 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_BAD_CHECKAFTER_IN_POLLREP), |
23 | "bad checkafter in pollrep"}, | |
3dbc5156 | 24 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_BAD_REQUEST_ID), "bad request id"}, |
62dcd2aa | 25 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTHASH_UNMATCHED), "certhash unmatched"}, |
3dbc5156 | 26 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTID_NOT_FOUND), "certid not found"}, |
7e765f46 DDO |
27 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTIFICATE_NOT_ACCEPTED), |
28 | "certificate not accepted"}, | |
3dbc5156 DDO |
29 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTIFICATE_NOT_FOUND), |
30 | "certificate not found"}, | |
62dcd2aa DDO |
31 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTREQMSG_NOT_FOUND), |
32 | "certreqmsg not found"}, | |
3dbc5156 DDO |
33 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERTRESPONSE_NOT_FOUND), |
34 | "certresponse not found"}, | |
35 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CERT_AND_KEY_DO_NOT_MATCH), | |
36 | "cert and key do not match"}, | |
7e765f46 DDO |
37 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_CHECKAFTER_OUT_OF_RANGE), |
38 | "checkafter out of range"}, | |
39 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ENCOUNTERED_KEYUPDATEWARNING), | |
40 | "encountered keyupdatewarning"}, | |
41 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ENCOUNTERED_WAITING), | |
42 | "encountered waiting"}, | |
3dbc5156 DDO |
43 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CALCULATING_PROTECTION), |
44 | "error calculating protection"}, | |
45 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTCONF), | |
46 | "error creating certconf"}, | |
47 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTREP), | |
48 | "error creating certrep"}, | |
299e0f1e DDO |
49 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_CERTREQ), |
50 | "error creating certreq"}, | |
3dbc5156 DDO |
51 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_ERROR), |
52 | "error creating error"}, | |
53 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENM), | |
54 | "error creating genm"}, | |
55 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_GENP), | |
56 | "error creating genp"}, | |
3dbc5156 DDO |
57 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_PKICONF), |
58 | "error creating pkiconf"}, | |
59 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREP), | |
60 | "error creating pollrep"}, | |
61 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_POLLREQ), | |
62 | "error creating pollreq"}, | |
63 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RP), "error creating rp"}, | |
64 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_CREATING_RR), "error creating rr"}, | |
4dde554c DDO |
65 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PARSING_PKISTATUS), |
66 | "error parsing pkistatus"}, | |
7e765f46 DDO |
67 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PROCESSING_MESSAGE), |
68 | "error processing message"}, | |
3dbc5156 DDO |
69 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_PROTECTING_MESSAGE), |
70 | "error protecting message"}, | |
71 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_SETTING_CERTHASH), | |
72 | "error setting certhash"}, | |
62dcd2aa DDO |
73 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_UNEXPECTED_CERTCONF), |
74 | "error unexpected certconf"}, | |
31b28ad9 DDO |
75 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_VALIDATING_PROTECTION), |
76 | "error validating protection"}, | |
032b13c7 DDO |
77 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_ERROR_VALIDATING_SIGNATURE), |
78 | "error validating signature"}, | |
bedffe17 | 79 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_EXPECTED_POLLREQ), "expected pollreq"}, |
15076c26 DDO |
80 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILED_BUILDING_OWN_CHAIN), |
81 | "failed building own chain"}, | |
31b28ad9 DDO |
82 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILED_EXTRACTING_PUBKEY), |
83 | "failed extracting pubkey"}, | |
4dde554c DDO |
84 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAILURE_OBTAINING_RANDOM), |
85 | "failure obtaining random"}, | |
3dbc5156 DDO |
86 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_FAIL_INFO_OUT_OF_RANGE), |
87 | "fail info out of range"}, | |
40a200f9 DDO |
88 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_GENERATE_CRLSTATUS), |
89 | "error creating crlstatus"}, | |
d477484d | 90 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_GETTING_GENP), "getting genp"}, |
40a200f9 | 91 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_GET_ITAV), "get itav"}, |
7960dbec | 92 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_ARGS), "invalid args"}, |
d477484d | 93 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_GENP), "invalid genp"}, |
11baa470 | 94 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_OPTION), "invalid option"}, |
01b04851 | 95 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_INVALID_ROOTCAKEYUPDATE), |
40a200f9 | 96 | "invalid rootcakeyupdate"}, |
7df56ada | 97 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_CERTID), "missing certid"}, |
3dbc5156 DDO |
98 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_KEY_INPUT_FOR_CREATING_PROTECTION), |
99 | "missing key input for creating protection"}, | |
31b28ad9 DDO |
100 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_KEY_USAGE_DIGITALSIGNATURE), |
101 | "missing key usage digitalsignature"}, | |
299e0f1e | 102 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_P10CSR), "missing p10csr"}, |
6d1f50b5 | 103 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PBM_SECRET), "missing pbm secret"}, |
3dbc5156 DDO |
104 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PRIVATE_KEY), |
105 | "missing private key"}, | |
2d658598 DDO |
106 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PRIVATE_KEY_FOR_POPO), |
107 | "missing private key for popo"}, | |
31b28ad9 | 108 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PROTECTION), "missing protection"}, |
2d658598 | 109 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_PUBLIC_KEY), "missing public key"}, |
753283cd DDO |
110 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_REFERENCE_CERT), |
111 | "missing reference cert"}, | |
fc933357 | 112 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_SECRET), "missing secret"}, |
4dde554c DDO |
113 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_SENDER_IDENTIFICATION), |
114 | "missing sender identification"}, | |
fc933357 DDO |
115 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_TRUST_ANCHOR), |
116 | "missing trust anchor"}, | |
31b28ad9 DDO |
117 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MISSING_TRUST_STORE), |
118 | "missing trust store"}, | |
62dcd2aa DDO |
119 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_REQUESTS_NOT_SUPPORTED), |
120 | "multiple requests not supported"}, | |
7e765f46 DDO |
121 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_RESPONSES_NOT_SUPPORTED), |
122 | "multiple responses not supported"}, | |
3dbc5156 DDO |
123 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_MULTIPLE_SAN_SOURCES), |
124 | "multiple san sources"}, | |
7960dbec | 125 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NO_STDIO), "no stdio"}, |
31b28ad9 DDO |
126 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NO_SUITABLE_SENDER_CERT), |
127 | "no suitable sender cert"}, | |
7960dbec | 128 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_NULL_ARGUMENT), "null argument"}, |
31b28ad9 | 129 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_PKIBODY_ERROR), "pkibody error"}, |
3dbc5156 DDO |
130 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_PKISTATUSINFO_NOT_FOUND), |
131 | "pkistatusinfo not found"}, | |
7e765f46 | 132 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_POLLING_FAILED), "polling failed"}, |
29f178bd DDO |
133 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_POTENTIALLY_INVALID_CERTIFICATE), |
134 | "potentially invalid certificate"}, | |
d8039304 | 135 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_RECEIVED_ERROR), "received error"}, |
31b28ad9 DDO |
136 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_RECIPNONCE_UNMATCHED), |
137 | "recipnonce unmatched"}, | |
138 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_REQUEST_NOT_ACCEPTED), | |
139 | "request not accepted"}, | |
7e765f46 DDO |
140 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_REQUEST_REJECTED_BY_SERVER), |
141 | "request rejected by server"}, | |
31b28ad9 DDO |
142 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_SENDER_GENERALNAME_TYPE_NOT_SUPPORTED), |
143 | "sender generalname type not supported"}, | |
144 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_SRVCERT_DOES_NOT_VALIDATE_MSG), | |
145 | "srvcert does not validate msg"}, | |
7e765f46 | 146 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TOTAL_TIMEOUT), "total timeout"}, |
31b28ad9 DDO |
147 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TRANSACTIONID_UNMATCHED), |
148 | "transactionid unmatched"}, | |
7e765f46 | 149 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_TRANSFER_ERROR), "transfer error"}, |
d477484d | 150 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNCLEAN_CTX), "unclean ctx"}, |
7c6577ba | 151 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_CERTPROFILE), |
40a200f9 DDO |
152 | "unexpected certprofile"}, |
153 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_CRLSTATUSLIST), | |
154 | "unexpected crlstatuslist"}, | |
3dbc5156 | 155 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PKIBODY), "unexpected pkibody"}, |
7e765f46 DDO |
156 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PKISTATUS), |
157 | "unexpected pkistatus"}, | |
bedffe17 | 158 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_POLLREQ), "unexpected pollreq"}, |
31b28ad9 | 159 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_PVNO), "unexpected pvno"}, |
f21409fa | 160 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNEXPECTED_SENDER), "unexpected sender"}, |
3dbc5156 DDO |
161 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_ALGORITHM_ID), |
162 | "unknown algorithm id"}, | |
163 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_CERT_TYPE), "unknown cert type"}, | |
40a200f9 | 164 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_CRL_ISSUER), "unknown crl issuer"}, |
7e765f46 | 165 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNKNOWN_PKISTATUS), "unknown pkistatus"}, |
3dbc5156 DDO |
166 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_ALGORITHM), |
167 | "unsupported algorithm"}, | |
168 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_KEY_TYPE), | |
169 | "unsupported key type"}, | |
bedffe17 DDO |
170 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_PKIBODY), |
171 | "unsupported pkibody"}, | |
31b28ad9 DDO |
172 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_UNSUPPORTED_PROTECTION_ALG_DHBASEDMAC), |
173 | "unsupported protection alg dhbasedmac"}, | |
11baa470 DDO |
174 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_VALUE_TOO_LARGE), "value too large"}, |
175 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_VALUE_TOO_SMALL), "value too small"}, | |
3dbc5156 DDO |
176 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_ALGORITHM_OID), |
177 | "wrong algorithm oid"}, | |
7df56ada | 178 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_CERTID), "wrong certid"}, |
7e765f46 | 179 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_CERTID_IN_RP), "wrong certid in rp"}, |
31b28ad9 | 180 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_PBM_VALUE), "wrong pbm value"}, |
7e765f46 DDO |
181 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_RP_COMPONENT_COUNT), |
182 | "wrong rp component count"}, | |
183 | {ERR_PACK(ERR_LIB_CMP, 0, CMP_R_WRONG_SERIAL_IN_RP), "wrong serial in rp"}, | |
8869ad4a AK |
184 | {0, NULL} |
185 | }; | |
186 | ||
14a6c6a4 | 187 | # endif |
8869ad4a | 188 | |
b93f6c2d | 189 | int ossl_err_load_CMP_strings(void) |
8869ad4a | 190 | { |
14a6c6a4 | 191 | # ifndef OPENSSL_NO_ERR |
0cd1b144 | 192 | if (ERR_reason_error_string(CMP_str_reasons[0].error) == NULL) |
8869ad4a | 193 | ERR_load_strings_const(CMP_str_reasons); |
14a6c6a4 | 194 | # endif |
8869ad4a AK |
195 | return 1; |
196 | } | |
14a6c6a4 RL |
197 | #else |
198 | NON_EMPTY_TRANSLATION_UNIT | |
199 | #endif |