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 OpenSSL license (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/cmserr.h>
|
---|
13 |
|
---|
14 | #ifndef OPENSSL_NO_ERR
|
---|
15 |
|
---|
16 | static const ERR_STRING_DATA CMS_str_functs[] = {
|
---|
17 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CHECK_CONTENT, 0), "check_content"},
|
---|
18 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD0_CERT, 0), "CMS_add0_cert"},
|
---|
19 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD0_RECIPIENT_KEY, 0),
|
---|
20 | "CMS_add0_recipient_key"},
|
---|
21 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD0_RECIPIENT_PASSWORD, 0),
|
---|
22 | "CMS_add0_recipient_password"},
|
---|
23 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD1_RECEIPTREQUEST, 0),
|
---|
24 | "CMS_add1_ReceiptRequest"},
|
---|
25 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD1_RECIPIENT_CERT, 0),
|
---|
26 | "CMS_add1_recipient_cert"},
|
---|
27 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD1_SIGNER, 0), "CMS_add1_signer"},
|
---|
28 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ADD1_SIGNINGTIME, 0),
|
---|
29 | "cms_add1_signingTime"},
|
---|
30 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_COMPRESS, 0), "CMS_compress"},
|
---|
31 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_COMPRESSEDDATA_CREATE, 0),
|
---|
32 | "cms_CompressedData_create"},
|
---|
33 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_COMPRESSEDDATA_INIT_BIO, 0),
|
---|
34 | "cms_CompressedData_init_bio"},
|
---|
35 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_COPY_CONTENT, 0), "cms_copy_content"},
|
---|
36 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_COPY_MESSAGEDIGEST, 0),
|
---|
37 | "cms_copy_messageDigest"},
|
---|
38 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DATA, 0), "CMS_data"},
|
---|
39 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DATAFINAL, 0), "CMS_dataFinal"},
|
---|
40 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DATAINIT, 0), "CMS_dataInit"},
|
---|
41 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DECRYPT, 0), "CMS_decrypt"},
|
---|
42 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DECRYPT_SET1_KEY, 0),
|
---|
43 | "CMS_decrypt_set1_key"},
|
---|
44 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DECRYPT_SET1_PASSWORD, 0),
|
---|
45 | "CMS_decrypt_set1_password"},
|
---|
46 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DECRYPT_SET1_PKEY, 0),
|
---|
47 | "CMS_decrypt_set1_pkey"},
|
---|
48 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DIGESTALGORITHM_FIND_CTX, 0),
|
---|
49 | "cms_DigestAlgorithm_find_ctx"},
|
---|
50 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DIGESTALGORITHM_INIT_BIO, 0),
|
---|
51 | "cms_DigestAlgorithm_init_bio"},
|
---|
52 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DIGESTEDDATA_DO_FINAL, 0),
|
---|
53 | "cms_DigestedData_do_final"},
|
---|
54 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_DIGEST_VERIFY, 0), "CMS_digest_verify"},
|
---|
55 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCODE_RECEIPT, 0), "cms_encode_Receipt"},
|
---|
56 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPT, 0), "CMS_encrypt"},
|
---|
57 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPTEDCONTENT_INIT, 0),
|
---|
58 | "cms_EncryptedContent_init"},
|
---|
59 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO, 0),
|
---|
60 | "cms_EncryptedContent_init_bio"},
|
---|
61 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPTEDDATA_DECRYPT, 0),
|
---|
62 | "CMS_EncryptedData_decrypt"},
|
---|
63 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT, 0),
|
---|
64 | "CMS_EncryptedData_encrypt"},
|
---|
65 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY, 0),
|
---|
66 | "CMS_EncryptedData_set1_key"},
|
---|
67 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENVELOPEDDATA_CREATE, 0),
|
---|
68 | "CMS_EnvelopedData_create"},
|
---|
69 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENVELOPEDDATA_INIT_BIO, 0),
|
---|
70 | "cms_EnvelopedData_init_bio"},
|
---|
71 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENVELOPED_DATA_INIT, 0),
|
---|
72 | "cms_enveloped_data_init"},
|
---|
73 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_ENV_ASN1_CTRL, 0), "cms_env_asn1_ctrl"},
|
---|
74 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_FINAL, 0), "CMS_final"},
|
---|
75 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_CERTIFICATE_CHOICES, 0),
|
---|
76 | "cms_get0_certificate_choices"},
|
---|
77 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_CONTENT, 0), "CMS_get0_content"},
|
---|
78 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_ECONTENT_TYPE, 0),
|
---|
79 | "cms_get0_econtent_type"},
|
---|
80 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_ENVELOPED, 0), "cms_get0_enveloped"},
|
---|
81 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_REVOCATION_CHOICES, 0),
|
---|
82 | "cms_get0_revocation_choices"},
|
---|
83 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_GET0_SIGNED, 0), "cms_get0_signed"},
|
---|
84 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_MSGSIGDIGEST_ADD1, 0),
|
---|
85 | "cms_msgSigDigest_add1"},
|
---|
86 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECEIPTREQUEST_CREATE0, 0),
|
---|
87 | "CMS_ReceiptRequest_create0"},
|
---|
88 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECEIPT_VERIFY, 0), "cms_Receipt_verify"},
|
---|
89 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_DECRYPT, 0),
|
---|
90 | "CMS_RecipientInfo_decrypt"},
|
---|
91 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_ENCRYPT, 0),
|
---|
92 | "CMS_RecipientInfo_encrypt"},
|
---|
93 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT, 0),
|
---|
94 | "cms_RecipientInfo_kari_encrypt"},
|
---|
95 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG, 0),
|
---|
96 | "CMS_RecipientInfo_kari_get0_alg"},
|
---|
97 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID, 0),
|
---|
98 | "CMS_RecipientInfo_kari_get0_orig_id"},
|
---|
99 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS, 0),
|
---|
100 | "CMS_RecipientInfo_kari_get0_reks"},
|
---|
101 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP, 0),
|
---|
102 | "CMS_RecipientInfo_kari_orig_id_cmp"},
|
---|
103 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT, 0),
|
---|
104 | "cms_RecipientInfo_kekri_decrypt"},
|
---|
105 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT, 0),
|
---|
106 | "cms_RecipientInfo_kekri_encrypt"},
|
---|
107 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID, 0),
|
---|
108 | "CMS_RecipientInfo_kekri_get0_id"},
|
---|
109 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP, 0),
|
---|
110 | "CMS_RecipientInfo_kekri_id_cmp"},
|
---|
111 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP, 0),
|
---|
112 | "CMS_RecipientInfo_ktri_cert_cmp"},
|
---|
113 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT, 0),
|
---|
114 | "cms_RecipientInfo_ktri_decrypt"},
|
---|
115 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT, 0),
|
---|
116 | "cms_RecipientInfo_ktri_encrypt"},
|
---|
117 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS, 0),
|
---|
118 | "CMS_RecipientInfo_ktri_get0_algs"},
|
---|
119 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID, 0),
|
---|
120 | "CMS_RecipientInfo_ktri_get0_signer_id"},
|
---|
121 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT, 0),
|
---|
122 | "cms_RecipientInfo_pwri_crypt"},
|
---|
123 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_SET0_KEY, 0),
|
---|
124 | "CMS_RecipientInfo_set0_key"},
|
---|
125 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD, 0),
|
---|
126 | "CMS_RecipientInfo_set0_password"},
|
---|
127 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_RECIPIENTINFO_SET0_PKEY, 0),
|
---|
128 | "CMS_RecipientInfo_set0_pkey"},
|
---|
129 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SD_ASN1_CTRL, 0), "cms_sd_asn1_ctrl"},
|
---|
130 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SET1_IAS, 0), "cms_set1_ias"},
|
---|
131 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SET1_KEYID, 0), "cms_set1_keyid"},
|
---|
132 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SET1_SIGNERIDENTIFIER, 0),
|
---|
133 | "cms_set1_SignerIdentifier"},
|
---|
134 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SET_DETACHED, 0), "CMS_set_detached"},
|
---|
135 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGN, 0), "CMS_sign"},
|
---|
136 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNED_DATA_INIT, 0),
|
---|
137 | "cms_signed_data_init"},
|
---|
138 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNERINFO_CONTENT_SIGN, 0),
|
---|
139 | "cms_SignerInfo_content_sign"},
|
---|
140 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNERINFO_SIGN, 0),
|
---|
141 | "CMS_SignerInfo_sign"},
|
---|
142 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNERINFO_VERIFY, 0),
|
---|
143 | "CMS_SignerInfo_verify"},
|
---|
144 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNERINFO_VERIFY_CERT, 0),
|
---|
145 | "cms_signerinfo_verify_cert"},
|
---|
146 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT, 0),
|
---|
147 | "CMS_SignerInfo_verify_content"},
|
---|
148 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SIGN_RECEIPT, 0), "CMS_sign_receipt"},
|
---|
149 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_SI_CHECK_ATTRIBUTES, 0),
|
---|
150 | "CMS_si_check_attributes"},
|
---|
151 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_STREAM, 0), "CMS_stream"},
|
---|
152 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_UNCOMPRESS, 0), "CMS_uncompress"},
|
---|
153 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_VERIFY, 0), "CMS_verify"},
|
---|
154 | {ERR_PACK(ERR_LIB_CMS, CMS_F_KEK_UNWRAP_KEY, 0), "kek_unwrap_key"},
|
---|
155 | {0, NULL}
|
---|
156 | };
|
---|
157 |
|
---|
158 | static const ERR_STRING_DATA CMS_str_reasons[] = {
|
---|
159 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ADD_SIGNER_ERROR), "add signer error"},
|
---|
160 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ATTRIBUTE_ERROR), "attribute error"},
|
---|
161 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_ALREADY_PRESENT),
|
---|
162 | "certificate already present"},
|
---|
163 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_HAS_NO_KEYID),
|
---|
164 | "certificate has no keyid"},
|
---|
165 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_VERIFY_ERROR),
|
---|
166 | "certificate verify error"},
|
---|
167 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CIPHER_INITIALISATION_ERROR),
|
---|
168 | "cipher initialisation error"},
|
---|
169 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR),
|
---|
170 | "cipher parameter initialisation error"},
|
---|
171 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CMS_DATAFINAL_ERROR),
|
---|
172 | "cms datafinal error"},
|
---|
173 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CMS_LIB), "cms lib"},
|
---|
174 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENTIDENTIFIER_MISMATCH),
|
---|
175 | "contentidentifier mismatch"},
|
---|
176 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_NOT_FOUND), "content not found"},
|
---|
177 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_MISMATCH),
|
---|
178 | "content type mismatch"},
|
---|
179 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA),
|
---|
180 | "content type not compressed data"},
|
---|
181 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA),
|
---|
182 | "content type not enveloped data"},
|
---|
183 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA),
|
---|
184 | "content type not signed data"},
|
---|
185 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_VERIFY_ERROR),
|
---|
186 | "content verify error"},
|
---|
187 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CTRL_ERROR), "ctrl error"},
|
---|
188 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CTRL_FAILURE), "ctrl failure"},
|
---|
189 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_DECRYPT_ERROR), "decrypt error"},
|
---|
190 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_GETTING_PUBLIC_KEY),
|
---|
191 | "error getting public key"},
|
---|
192 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE),
|
---|
193 | "error reading messagedigest attribute"},
|
---|
194 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_SETTING_KEY), "error setting key"},
|
---|
195 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_SETTING_RECIPIENTINFO),
|
---|
196 | "error setting recipientinfo"},
|
---|
197 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_ENCRYPTED_KEY_LENGTH),
|
---|
198 | "invalid encrypted key length"},
|
---|
199 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER),
|
---|
200 | "invalid key encryption parameter"},
|
---|
201 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_KEY_LENGTH), "invalid key length"},
|
---|
202 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MD_BIO_INIT_ERROR), "md bio init error"},
|
---|
203 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH),
|
---|
204 | "messagedigest attribute wrong length"},
|
---|
205 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MESSAGEDIGEST_WRONG_LENGTH),
|
---|
206 | "messagedigest wrong length"},
|
---|
207 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_ERROR), "msgsigdigest error"},
|
---|
208 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE),
|
---|
209 | "msgsigdigest verification failure"},
|
---|
210 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_WRONG_LENGTH),
|
---|
211 | "msgsigdigest wrong length"},
|
---|
212 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NEED_ONE_SIGNER), "need one signer"},
|
---|
213 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_A_SIGNED_RECEIPT),
|
---|
214 | "not a signed receipt"},
|
---|
215 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_ENCRYPTED_DATA), "not encrypted data"},
|
---|
216 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEK), "not kek"},
|
---|
217 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEY_AGREEMENT), "not key agreement"},
|
---|
218 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEY_TRANSPORT), "not key transport"},
|
---|
219 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_PWRI), "not pwri"},
|
---|
220 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE),
|
---|
221 | "not supported for this key type"},
|
---|
222 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CIPHER), "no cipher"},
|
---|
223 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT), "no content"},
|
---|
224 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT_TYPE), "no content type"},
|
---|
225 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DEFAULT_DIGEST), "no default digest"},
|
---|
226 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DIGEST_SET), "no digest set"},
|
---|
227 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_KEY), "no key"},
|
---|
228 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_KEY_OR_CERT), "no key or cert"},
|
---|
229 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_DIGEST), "no matching digest"},
|
---|
230 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_RECIPIENT),
|
---|
231 | "no matching recipient"},
|
---|
232 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_SIGNATURE),
|
---|
233 | "no matching signature"},
|
---|
234 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MSGSIGDIGEST), "no msgsigdigest"},
|
---|
235 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PASSWORD), "no password"},
|
---|
236 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PRIVATE_KEY), "no private key"},
|
---|
237 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PUBLIC_KEY), "no public key"},
|
---|
238 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_RECEIPT_REQUEST), "no receipt request"},
|
---|
239 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_SIGNERS), "no signers"},
|
---|
240 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
|
---|
241 | "private key does not match certificate"},
|
---|
242 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_RECEIPT_DECODE_ERROR),
|
---|
243 | "receipt decode error"},
|
---|
244 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_RECIPIENT_ERROR), "recipient error"},
|
---|
245 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SIGNER_CERTIFICATE_NOT_FOUND),
|
---|
246 | "signer certificate not found"},
|
---|
247 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SIGNFINAL_ERROR), "signfinal error"},
|
---|
248 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SMIME_TEXT_ERROR), "smime text error"},
|
---|
249 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_STORE_INIT_ERROR), "store init error"},
|
---|
250 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_COMPRESSED_DATA),
|
---|
251 | "type not compressed data"},
|
---|
252 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_DATA), "type not data"},
|
---|
253 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_DIGESTED_DATA),
|
---|
254 | "type not digested data"},
|
---|
255 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_ENCRYPTED_DATA),
|
---|
256 | "type not encrypted data"},
|
---|
257 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_ENVELOPED_DATA),
|
---|
258 | "type not enveloped data"},
|
---|
259 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNABLE_TO_FINALIZE_CONTEXT),
|
---|
260 | "unable to finalize context"},
|
---|
261 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_CIPHER), "unknown cipher"},
|
---|
262 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_DIGEST_ALGORITHM),
|
---|
263 | "unknown digest algorithm"},
|
---|
264 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_ID), "unknown id"},
|
---|
265 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM),
|
---|
266 | "unsupported compression algorithm"},
|
---|
267 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_CONTENT_TYPE),
|
---|
268 | "unsupported content type"},
|
---|
269 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_KEK_ALGORITHM),
|
---|
270 | "unsupported kek algorithm"},
|
---|
271 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM),
|
---|
272 | "unsupported key encryption algorithm"},
|
---|
273 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE),
|
---|
274 | "unsupported recipientinfo type"},
|
---|
275 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_RECIPIENT_TYPE),
|
---|
276 | "unsupported recipient type"},
|
---|
277 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_TYPE), "unsupported type"},
|
---|
278 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNWRAP_ERROR), "unwrap error"},
|
---|
279 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNWRAP_FAILURE), "unwrap failure"},
|
---|
280 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_VERIFICATION_FAILURE),
|
---|
281 | "verification failure"},
|
---|
282 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_WRAP_ERROR), "wrap error"},
|
---|
283 | {0, NULL}
|
---|
284 | };
|
---|
285 |
|
---|
286 | #endif
|
---|
287 |
|
---|
288 | int ERR_load_CMS_strings(void)
|
---|
289 | {
|
---|
290 | #ifndef OPENSSL_NO_ERR
|
---|
291 | if (ERR_func_error_string(CMS_str_functs[0].error) == NULL) {
|
---|
292 | ERR_load_strings_const(CMS_str_functs);
|
---|
293 | ERR_load_strings_const(CMS_str_reasons);
|
---|
294 | }
|
---|
295 | #endif
|
---|
296 | return 1;
|
---|
297 | }
|
---|