1 | /* |
2 | * Generated by util/mkerr.pl DO NOT EDIT |
3 | * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved. |
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 | #ifndef OPENSSL_CMSERR_H |
12 | # define OPENSSL_CMSERR_H |
13 | # pragma once |
14 | |
15 | # include <openssl/macros.h> |
16 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
17 | # define |
18 | # endif |
19 | |
20 | # include <openssl/opensslconf.h> |
21 | # include <openssl/symhacks.h> |
22 | |
23 | |
24 | # include <openssl/opensslconf.h> |
25 | |
26 | # ifndef OPENSSL_NO_CMS |
27 | |
28 | # ifdef __cplusplus |
29 | extern "C" |
30 | # endif |
31 | int ERR_load_CMS_strings(void); |
32 | |
33 | /* |
34 | * CMS function codes. |
35 | */ |
36 | # ifndef OPENSSL_NO_DEPRECATED_3_0 |
37 | # define CMS_F_CHECK_CONTENT 0 |
38 | # define CMS_F_CMS_ADD0_CERT 0 |
39 | # define CMS_F_CMS_ADD0_RECIPIENT_KEY 0 |
40 | # define CMS_F_CMS_ADD0_RECIPIENT_PASSWORD 0 |
41 | # define CMS_F_CMS_ADD1_RECEIPTREQUEST 0 |
42 | # define CMS_F_CMS_ADD1_RECIPIENT_CERT 0 |
43 | # define CMS_F_CMS_ADD1_SIGNER 0 |
44 | # define CMS_F_CMS_ADD1_SIGNINGTIME 0 |
45 | # define CMS_F_CMS_ADD1_SIGNING_CERT 0 |
46 | # define CMS_F_CMS_ADD1_SIGNING_CERT_V2 0 |
47 | # define CMS_F_CMS_COMPRESS 0 |
48 | # define CMS_F_CMS_COMPRESSEDDATA_CREATE 0 |
49 | # define CMS_F_CMS_COMPRESSEDDATA_INIT_BIO 0 |
50 | # define CMS_F_CMS_COPY_CONTENT 0 |
51 | # define CMS_F_CMS_COPY_MESSAGEDIGEST 0 |
52 | # define CMS_F_CMS_DATA 0 |
53 | # define CMS_F_CMS_DATAFINAL 0 |
54 | # define CMS_F_CMS_DATAINIT 0 |
55 | # define CMS_F_CMS_DECRYPT 0 |
56 | # define CMS_F_CMS_DECRYPT_SET1_KEY 0 |
57 | # define CMS_F_CMS_DECRYPT_SET1_PASSWORD 0 |
58 | # define CMS_F_CMS_DECRYPT_SET1_PKEY 0 |
59 | # define CMS_F_CMS_DIGESTALGORITHM_FIND_CTX 0 |
60 | # define CMS_F_CMS_DIGESTALGORITHM_INIT_BIO 0 |
61 | # define CMS_F_CMS_DIGESTEDDATA_DO_FINAL 0 |
62 | # define CMS_F_CMS_DIGEST_VERIFY 0 |
63 | # define CMS_F_CMS_ENCODE_RECEIPT 0 |
64 | # define CMS_F_CMS_ENCRYPT 0 |
65 | # define CMS_F_CMS_ENCRYPTEDCONTENT_INIT 0 |
66 | # define CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO 0 |
67 | # define CMS_F_CMS_ENCRYPTEDDATA_DECRYPT 0 |
68 | # define CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT 0 |
69 | # define CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY 0 |
70 | # define CMS_F_CMS_ENVELOPEDDATA_CREATE 0 |
71 | # define CMS_F_CMS_ENVELOPEDDATA_INIT_BIO 0 |
72 | # define CMS_F_CMS_ENVELOPED_DATA_INIT 0 |
73 | # define CMS_F_CMS_ENV_ASN1_CTRL 0 |
74 | # define CMS_F_CMS_FINAL 0 |
75 | # define CMS_F_CMS_GET0_CERTIFICATE_CHOICES 0 |
76 | # define CMS_F_CMS_GET0_CONTENT 0 |
77 | # define CMS_F_CMS_GET0_ECONTENT_TYPE 0 |
78 | # define CMS_F_CMS_GET0_ENVELOPED 0 |
79 | # define CMS_F_CMS_GET0_REVOCATION_CHOICES 0 |
80 | # define CMS_F_CMS_GET0_SIGNED 0 |
81 | # define CMS_F_CMS_MSGSIGDIGEST_ADD1 0 |
82 | # define CMS_F_CMS_RECEIPTREQUEST_CREATE0 0 |
83 | # define CMS_F_CMS_RECEIPT_VERIFY 0 |
84 | # define CMS_F_CMS_RECIPIENTINFO_DECRYPT 0 |
85 | # define CMS_F_CMS_RECIPIENTINFO_ENCRYPT 0 |
86 | # define CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT 0 |
87 | # define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG 0 |
88 | # define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID 0 |
89 | # define CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS 0 |
90 | # define CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP 0 |
91 | # define CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT 0 |
92 | # define CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT 0 |
93 | # define CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID 0 |
94 | # define CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP 0 |
95 | # define CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP 0 |
96 | # define CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT 0 |
97 | # define CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT 0 |
98 | # define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS 0 |
99 | # define CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID 0 |
100 | # define CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT 0 |
101 | # define CMS_F_CMS_RECIPIENTINFO_SET0_KEY 0 |
102 | # define CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD 0 |
103 | # define CMS_F_CMS_RECIPIENTINFO_SET0_PKEY 0 |
104 | # define CMS_F_CMS_SD_ASN1_CTRL 0 |
105 | # define CMS_F_CMS_SET1_IAS 0 |
106 | # define CMS_F_CMS_SET1_KEYID 0 |
107 | # define CMS_F_CMS_SET1_SIGNERIDENTIFIER 0 |
108 | # define CMS_F_CMS_SET_DETACHED 0 |
109 | # define CMS_F_CMS_SIGN 0 |
110 | # define CMS_F_CMS_SIGNED_DATA_INIT 0 |
111 | # define CMS_F_CMS_SIGNERINFO_CONTENT_SIGN 0 |
112 | # define CMS_F_CMS_SIGNERINFO_SIGN 0 |
113 | # define CMS_F_CMS_SIGNERINFO_VERIFY 0 |
114 | # define CMS_F_CMS_SIGNERINFO_VERIFY_CERT 0 |
115 | # define CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT 0 |
116 | # define CMS_F_CMS_SIGN_RECEIPT 0 |
117 | # define CMS_F_CMS_SI_CHECK_ATTRIBUTES 0 |
118 | # define CMS_F_CMS_STREAM 0 |
119 | # define CMS_F_CMS_UNCOMPRESS 0 |
120 | # define CMS_F_CMS_VERIFY 0 |
121 | # define CMS_F_KEK_UNWRAP_KEY 0 |
122 | # endif |
123 | |
124 | /* |
125 | * CMS reason codes. |
126 | */ |
127 | # define CMS_R_ADD_SIGNER_ERROR 99 |
128 | # define CMS_R_ATTRIBUTE_ERROR 161 |
129 | # define CMS_R_CERTIFICATE_ALREADY_PRESENT 175 |
130 | # define CMS_R_CERTIFICATE_HAS_NO_KEYID 160 |
131 | # define CMS_R_CERTIFICATE_VERIFY_ERROR 100 |
132 | # define CMS_R_CIPHER_INITIALISATION_ERROR 101 |
133 | # define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR 102 |
134 | # define CMS_R_CMS_DATAFINAL_ERROR 103 |
135 | # define CMS_R_CMS_LIB 104 |
136 | # define CMS_R_CONTENTIDENTIFIER_MISMATCH 170 |
137 | # define CMS_R_CONTENT_NOT_FOUND 105 |
138 | # define CMS_R_CONTENT_TYPE_MISMATCH 171 |
139 | # define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA 106 |
140 | # define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA 107 |
141 | # define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA 108 |
142 | # define CMS_R_CONTENT_VERIFY_ERROR 109 |
143 | # define CMS_R_CTRL_ERROR 110 |
144 | # define CMS_R_CTRL_FAILURE 111 |
145 | # define CMS_R_DECRYPT_ERROR 112 |
146 | # define CMS_R_ERROR_GETTING_PUBLIC_KEY 113 |
147 | # define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE 114 |
148 | # define CMS_R_ERROR_SETTING_KEY 115 |
149 | # define CMS_R_ERROR_SETTING_RECIPIENTINFO 116 |
150 | # define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH 117 |
151 | # define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER 176 |
152 | # define CMS_R_INVALID_KEY_LENGTH 118 |
153 | # define CMS_R_MD_BIO_INIT_ERROR 119 |
154 | # define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH 120 |
155 | # define CMS_R_MESSAGEDIGEST_WRONG_LENGTH 121 |
156 | # define CMS_R_MSGSIGDIGEST_ERROR 172 |
157 | # define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE 162 |
158 | # define CMS_R_MSGSIGDIGEST_WRONG_LENGTH 163 |
159 | # define CMS_R_NEED_ONE_SIGNER 164 |
160 | # define CMS_R_NOT_A_SIGNED_RECEIPT 165 |
161 | # define CMS_R_NOT_ENCRYPTED_DATA 122 |
162 | # define CMS_R_NOT_KEK 123 |
163 | # define CMS_R_NOT_KEY_AGREEMENT 181 |
164 | # define CMS_R_NOT_KEY_TRANSPORT 124 |
165 | # define CMS_R_NOT_PWRI 177 |
166 | # define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 125 |
167 | # define CMS_R_NO_CIPHER 126 |
168 | # define CMS_R_NO_CONTENT 127 |
169 | # define CMS_R_NO_CONTENT_TYPE 173 |
170 | # define CMS_R_NO_DEFAULT_DIGEST 128 |
171 | # define CMS_R_NO_DIGEST_SET 129 |
172 | # define CMS_R_NO_KEY 130 |
173 | # define CMS_R_NO_KEY_OR_CERT 174 |
174 | # define CMS_R_NO_MATCHING_DIGEST 131 |
175 | # define CMS_R_NO_MATCHING_RECIPIENT 132 |
176 | # define CMS_R_NO_MATCHING_SIGNATURE 166 |
177 | # define CMS_R_NO_MSGSIGDIGEST 167 |
178 | # define CMS_R_NO_PASSWORD 178 |
179 | # define CMS_R_NO_PRIVATE_KEY 133 |
180 | # define CMS_R_NO_PUBLIC_KEY 134 |
181 | # define CMS_R_NO_RECEIPT_REQUEST 168 |
182 | # define CMS_R_NO_SIGNERS 135 |
183 | # define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 136 |
184 | # define CMS_R_RECEIPT_DECODE_ERROR 169 |
185 | # define CMS_R_RECIPIENT_ERROR 137 |
186 | # define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND 138 |
187 | # define CMS_R_SIGNFINAL_ERROR 139 |
188 | # define CMS_R_SMIME_TEXT_ERROR 140 |
189 | # define CMS_R_STORE_INIT_ERROR 141 |
190 | # define CMS_R_TYPE_NOT_COMPRESSED_DATA 142 |
191 | # define CMS_R_TYPE_NOT_DATA 143 |
192 | # define CMS_R_TYPE_NOT_DIGESTED_DATA 144 |
193 | # define CMS_R_TYPE_NOT_ENCRYPTED_DATA 145 |
194 | # define CMS_R_TYPE_NOT_ENVELOPED_DATA 146 |
195 | # define CMS_R_UNABLE_TO_FINALIZE_CONTEXT 147 |
196 | # define CMS_R_UNKNOWN_CIPHER 148 |
197 | # define CMS_R_UNKNOWN_DIGEST_ALGORITHM 149 |
198 | # define CMS_R_UNKNOWN_ID 150 |
199 | # define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM 151 |
200 | # define CMS_R_UNSUPPORTED_CONTENT_TYPE 152 |
201 | # define CMS_R_UNSUPPORTED_KEK_ALGORITHM 153 |
202 | # define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM 179 |
203 | # define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE 155 |
204 | # define CMS_R_UNSUPPORTED_RECIPIENT_TYPE 154 |
205 | # define CMS_R_UNSUPPORTED_TYPE 156 |
206 | # define CMS_R_UNWRAP_ERROR 157 |
207 | # define CMS_R_UNWRAP_FAILURE 180 |
208 | # define CMS_R_VERIFICATION_FAILURE 158 |
209 | # define CMS_R_WRAP_ERROR 159 |
210 | |
211 | # endif |
212 | #endif |
213 | |