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