Line | Source | Count |
1 | | - |
2 | | - |
3 | | - |
4 | | - |
5 | | - |
6 | | - |
7 | | - |
8 | | - |
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_STREAM, 0), "CMS_stream"}, | - |
150 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_UNCOMPRESS, 0), "CMS_uncompress"}, | - |
151 | {ERR_PACK(ERR_LIB_CMS, CMS_F_CMS_VERIFY, 0), "CMS_verify"}, | - |
152 | {ERR_PACK(ERR_LIB_CMS, CMS_F_KEK_UNWRAP_KEY, 0), "kek_unwrap_key"}, | - |
153 | {0, NULL} | - |
154 | }; | - |
155 | | - |
156 | static const ERR_STRING_DATA CMS_str_reasons[] = { | - |
157 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ADD_SIGNER_ERROR), "add signer error"}, | - |
158 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_ALREADY_PRESENT), | - |
159 | "certificate already present"}, | - |
160 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_HAS_NO_KEYID), | - |
161 | "certificate has no keyid"}, | - |
162 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CERTIFICATE_VERIFY_ERROR), | - |
163 | "certificate verify error"}, | - |
164 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CIPHER_INITIALISATION_ERROR), | - |
165 | "cipher initialisation error"}, | - |
166 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR), | - |
167 | "cipher parameter initialisation error"}, | - |
168 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CMS_DATAFINAL_ERROR), | - |
169 | "cms datafinal error"}, | - |
170 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CMS_LIB), "cms lib"}, | - |
171 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENTIDENTIFIER_MISMATCH), | - |
172 | "contentidentifier mismatch"}, | - |
173 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_NOT_FOUND), "content not found"}, | - |
174 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_MISMATCH), | - |
175 | "content type mismatch"}, | - |
176 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA), | - |
177 | "content type not compressed data"}, | - |
178 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA), | - |
179 | "content type not enveloped data"}, | - |
180 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA), | - |
181 | "content type not signed data"}, | - |
182 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CONTENT_VERIFY_ERROR), | - |
183 | "content verify error"}, | - |
184 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CTRL_ERROR), "ctrl error"}, | - |
185 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_CTRL_FAILURE), "ctrl failure"}, | - |
186 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_DECRYPT_ERROR), "decrypt error"}, | - |
187 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_GETTING_PUBLIC_KEY), | - |
188 | "error getting public key"}, | - |
189 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE), | - |
190 | "error reading messagedigest attribute"}, | - |
191 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_SETTING_KEY), "error setting key"}, | - |
192 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_ERROR_SETTING_RECIPIENTINFO), | - |
193 | "error setting recipientinfo"}, | - |
194 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_ENCRYPTED_KEY_LENGTH), | - |
195 | "invalid encrypted key length"}, | - |
196 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER), | - |
197 | "invalid key encryption parameter"}, | - |
198 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_INVALID_KEY_LENGTH), "invalid key length"}, | - |
199 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MD_BIO_INIT_ERROR), "md bio init error"}, | - |
200 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH), | - |
201 | "messagedigest attribute wrong length"}, | - |
202 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MESSAGEDIGEST_WRONG_LENGTH), | - |
203 | "messagedigest wrong length"}, | - |
204 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_ERROR), "msgsigdigest error"}, | - |
205 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE), | - |
206 | "msgsigdigest verification failure"}, | - |
207 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_MSGSIGDIGEST_WRONG_LENGTH), | - |
208 | "msgsigdigest wrong length"}, | - |
209 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NEED_ONE_SIGNER), "need one signer"}, | - |
210 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_A_SIGNED_RECEIPT), | - |
211 | "not a signed receipt"}, | - |
212 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_ENCRYPTED_DATA), "not encrypted data"}, | - |
213 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEK), "not kek"}, | - |
214 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEY_AGREEMENT), "not key agreement"}, | - |
215 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_KEY_TRANSPORT), "not key transport"}, | - |
216 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_PWRI), "not pwri"}, | - |
217 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE), | - |
218 | "not supported for this key type"}, | - |
219 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CIPHER), "no cipher"}, | - |
220 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT), "no content"}, | - |
221 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_CONTENT_TYPE), "no content type"}, | - |
222 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DEFAULT_DIGEST), "no default digest"}, | - |
223 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_DIGEST_SET), "no digest set"}, | - |
224 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_KEY), "no key"}, | - |
225 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_KEY_OR_CERT), "no key or cert"}, | - |
226 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_DIGEST), "no matching digest"}, | - |
227 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_RECIPIENT), | - |
228 | "no matching recipient"}, | - |
229 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MATCHING_SIGNATURE), | - |
230 | "no matching signature"}, | - |
231 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_MSGSIGDIGEST), "no msgsigdigest"}, | - |
232 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PASSWORD), "no password"}, | - |
233 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PRIVATE_KEY), "no private key"}, | - |
234 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_PUBLIC_KEY), "no public key"}, | - |
235 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_RECEIPT_REQUEST), "no receipt request"}, | - |
236 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_NO_SIGNERS), "no signers"}, | - |
237 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE), | - |
238 | "private key does not match certificate"}, | - |
239 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_RECEIPT_DECODE_ERROR), | - |
240 | "receipt decode error"}, | - |
241 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_RECIPIENT_ERROR), "recipient error"}, | - |
242 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SIGNER_CERTIFICATE_NOT_FOUND), | - |
243 | "signer certificate not found"}, | - |
244 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SIGNFINAL_ERROR), "signfinal error"}, | - |
245 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_SMIME_TEXT_ERROR), "smime text error"}, | - |
246 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_STORE_INIT_ERROR), "store init error"}, | - |
247 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_COMPRESSED_DATA), | - |
248 | "type not compressed data"}, | - |
249 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_DATA), "type not data"}, | - |
250 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_DIGESTED_DATA), | - |
251 | "type not digested data"}, | - |
252 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_ENCRYPTED_DATA), | - |
253 | "type not encrypted data"}, | - |
254 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_TYPE_NOT_ENVELOPED_DATA), | - |
255 | "type not enveloped data"}, | - |
256 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNABLE_TO_FINALIZE_CONTEXT), | - |
257 | "unable to finalize context"}, | - |
258 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_CIPHER), "unknown cipher"}, | - |
259 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_DIGEST_ALGORITHM), | - |
260 | "unknown digest algorithm"}, | - |
261 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNKNOWN_ID), "unknown id"}, | - |
262 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM), | - |
263 | "unsupported compression algorithm"}, | - |
264 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_CONTENT_TYPE), | - |
265 | "unsupported content type"}, | - |
266 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_KEK_ALGORITHM), | - |
267 | "unsupported kek algorithm"}, | - |
268 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM), | - |
269 | "unsupported key encryption algorithm"}, | - |
270 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE), | - |
271 | "unsupported recipientinfo type"}, | - |
272 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_RECIPIENT_TYPE), | - |
273 | "unsupported recipient type"}, | - |
274 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNSUPPORTED_TYPE), "unsupported type"}, | - |
275 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNWRAP_ERROR), "unwrap error"}, | - |
276 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_UNWRAP_FAILURE), "unwrap failure"}, | - |
277 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_VERIFICATION_FAILURE), | - |
278 | "verification failure"}, | - |
279 | {ERR_PACK(ERR_LIB_CMS, 0, CMS_R_WRAP_ERROR), "wrap error"}, | - |
280 | {0, NULL} | - |
281 | }; | - |
282 | | - |
283 | #endif | - |
284 | | - |
285 | int ERR_load_CMS_strings(void) | - |
286 | { | - |
287 | #ifndef OPENSSL_NO_ERR | - |
288 | if (ERR_func_error_string(CMS_str_functs[0].error) == NULL) {TRUE | evaluated 2074 times by 11 testsEvaluated by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| FALSE | never evaluated |
| 0-2074 |
289 | ERR_load_strings_const(CMS_str_functs); | - |
290 | ERR_load_strings_const(CMS_str_reasons); | - |
291 | }executed 2074 times by 11 tests: end of block Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
292 | #endif | - |
293 | return 1;executed 2074 times by 11 tests: return 1; Executed by:- asn1_internal_test
- chacha_internal_test
- ctype_internal_test
- curve448_internal_test
- libcrypto.so.1.1
- modes_internal_test
- poly1305_internal_test
- siphash_internal_test
- sm2_internal_test
- sm4_internal_test
- x509_internal_test
| 2074 |
294 | } | - |
| | |