cms_err.c 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310
  1. /* crypto/cms/cms_err.c */
  2. /* ====================================================================
  3. * Copyright (c) 1999-2013 The OpenSSL Project. All rights reserved.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions
  7. * are met:
  8. *
  9. * 1. Redistributions of source code must retain the above copyright
  10. * notice, this list of conditions and the following disclaimer.
  11. *
  12. * 2. Redistributions in binary form must reproduce the above copyright
  13. * notice, this list of conditions and the following disclaimer in
  14. * the documentation and/or other materials provided with the
  15. * distribution.
  16. *
  17. * 3. All advertising materials mentioning features or use of this
  18. * software must display the following acknowledgment:
  19. * "This product includes software developed by the OpenSSL Project
  20. * for use in the OpenSSL Toolkit. (http://www.OpenSSL.org/)"
  21. *
  22. * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to
  23. * endorse or promote products derived from this software without
  24. * prior written permission. For written permission, please contact
  25. * openssl-core@OpenSSL.org.
  26. *
  27. * 5. Products derived from this software may not be called "OpenSSL"
  28. * nor may "OpenSSL" appear in their names without prior written
  29. * permission of the OpenSSL Project.
  30. *
  31. * 6. Redistributions of any form whatsoever must retain the following
  32. * acknowledgment:
  33. * "This product includes software developed by the OpenSSL Project
  34. * for use in the OpenSSL Toolkit (http://www.OpenSSL.org/)"
  35. *
  36. * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY
  37. * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
  38. * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
  39. * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR
  40. * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  41. * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
  42. * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  43. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
  44. * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
  45. * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
  46. * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
  47. * OF THE POSSIBILITY OF SUCH DAMAGE.
  48. * ====================================================================
  49. *
  50. * This product includes cryptographic software written by Eric Young
  51. * (eay@cryptsoft.com). This product includes software written by Tim
  52. * Hudson (tjh@cryptsoft.com).
  53. *
  54. */
  55. /*
  56. * NOTE: this file was auto generated by the mkerr.pl script: any changes
  57. * made to it will be overwritten when the script next updates this file,
  58. * only reason strings will be preserved.
  59. */
  60. #include <stdio.h>
  61. #include <openssl/err.h>
  62. #include <openssl/cms.h>
  63. /* BEGIN ERROR CODES */
  64. #ifndef OPENSSL_NO_ERR
  65. # define ERR_FUNC(func) ERR_PACK(ERR_LIB_CMS,func,0)
  66. # define ERR_REASON(reason) ERR_PACK(ERR_LIB_CMS,0,reason)
  67. static ERR_STRING_DATA CMS_str_functs[] = {
  68. {ERR_FUNC(CMS_F_CHECK_CONTENT), "CHECK_CONTENT"},
  69. {ERR_FUNC(CMS_F_CMS_ADD0_CERT), "CMS_add0_cert"},
  70. {ERR_FUNC(CMS_F_CMS_ADD0_RECIPIENT_KEY), "CMS_add0_recipient_key"},
  71. {ERR_FUNC(CMS_F_CMS_ADD0_RECIPIENT_PASSWORD),
  72. "CMS_add0_recipient_password"},
  73. {ERR_FUNC(CMS_F_CMS_ADD1_RECEIPTREQUEST), "CMS_add1_ReceiptRequest"},
  74. {ERR_FUNC(CMS_F_CMS_ADD1_RECIPIENT_CERT), "CMS_add1_recipient_cert"},
  75. {ERR_FUNC(CMS_F_CMS_ADD1_SIGNER), "CMS_add1_signer"},
  76. {ERR_FUNC(CMS_F_CMS_ADD1_SIGNINGTIME), "CMS_ADD1_SIGNINGTIME"},
  77. {ERR_FUNC(CMS_F_CMS_COMPRESS), "CMS_compress"},
  78. {ERR_FUNC(CMS_F_CMS_COMPRESSEDDATA_CREATE), "cms_CompressedData_create"},
  79. {ERR_FUNC(CMS_F_CMS_COMPRESSEDDATA_INIT_BIO),
  80. "cms_CompressedData_init_bio"},
  81. {ERR_FUNC(CMS_F_CMS_COPY_CONTENT), "CMS_COPY_CONTENT"},
  82. {ERR_FUNC(CMS_F_CMS_COPY_MESSAGEDIGEST), "CMS_COPY_MESSAGEDIGEST"},
  83. {ERR_FUNC(CMS_F_CMS_DATA), "CMS_data"},
  84. {ERR_FUNC(CMS_F_CMS_DATAFINAL), "CMS_dataFinal"},
  85. {ERR_FUNC(CMS_F_CMS_DATAINIT), "CMS_dataInit"},
  86. {ERR_FUNC(CMS_F_CMS_DECRYPT), "CMS_decrypt"},
  87. {ERR_FUNC(CMS_F_CMS_DECRYPT_SET1_KEY), "CMS_decrypt_set1_key"},
  88. {ERR_FUNC(CMS_F_CMS_DECRYPT_SET1_PASSWORD), "CMS_decrypt_set1_password"},
  89. {ERR_FUNC(CMS_F_CMS_DECRYPT_SET1_PKEY), "CMS_decrypt_set1_pkey"},
  90. {ERR_FUNC(CMS_F_CMS_DIGESTALGORITHM_FIND_CTX),
  91. "cms_DigestAlgorithm_find_ctx"},
  92. {ERR_FUNC(CMS_F_CMS_DIGESTALGORITHM_INIT_BIO),
  93. "cms_DigestAlgorithm_init_bio"},
  94. {ERR_FUNC(CMS_F_CMS_DIGESTEDDATA_DO_FINAL), "cms_DigestedData_do_final"},
  95. {ERR_FUNC(CMS_F_CMS_DIGEST_VERIFY), "CMS_digest_verify"},
  96. {ERR_FUNC(CMS_F_CMS_ENCODE_RECEIPT), "cms_encode_Receipt"},
  97. {ERR_FUNC(CMS_F_CMS_ENCRYPT), "CMS_encrypt"},
  98. {ERR_FUNC(CMS_F_CMS_ENCRYPTEDCONTENT_INIT_BIO),
  99. "cms_EncryptedContent_init_bio"},
  100. {ERR_FUNC(CMS_F_CMS_ENCRYPTEDDATA_DECRYPT), "CMS_EncryptedData_decrypt"},
  101. {ERR_FUNC(CMS_F_CMS_ENCRYPTEDDATA_ENCRYPT), "CMS_EncryptedData_encrypt"},
  102. {ERR_FUNC(CMS_F_CMS_ENCRYPTEDDATA_SET1_KEY),
  103. "CMS_EncryptedData_set1_key"},
  104. {ERR_FUNC(CMS_F_CMS_ENVELOPEDDATA_CREATE), "CMS_EnvelopedData_create"},
  105. {ERR_FUNC(CMS_F_CMS_ENVELOPEDDATA_INIT_BIO),
  106. "cms_EnvelopedData_init_bio"},
  107. {ERR_FUNC(CMS_F_CMS_ENVELOPED_DATA_INIT), "CMS_ENVELOPED_DATA_INIT"},
  108. {ERR_FUNC(CMS_F_CMS_ENV_ASN1_CTRL), "cms_env_asn1_ctrl"},
  109. {ERR_FUNC(CMS_F_CMS_FINAL), "CMS_final"},
  110. {ERR_FUNC(CMS_F_CMS_GET0_CERTIFICATE_CHOICES),
  111. "CMS_GET0_CERTIFICATE_CHOICES"},
  112. {ERR_FUNC(CMS_F_CMS_GET0_CONTENT), "CMS_get0_content"},
  113. {ERR_FUNC(CMS_F_CMS_GET0_ECONTENT_TYPE), "CMS_GET0_ECONTENT_TYPE"},
  114. {ERR_FUNC(CMS_F_CMS_GET0_ENVELOPED), "cms_get0_enveloped"},
  115. {ERR_FUNC(CMS_F_CMS_GET0_REVOCATION_CHOICES),
  116. "CMS_GET0_REVOCATION_CHOICES"},
  117. {ERR_FUNC(CMS_F_CMS_GET0_SIGNED), "CMS_GET0_SIGNED"},
  118. {ERR_FUNC(CMS_F_CMS_MSGSIGDIGEST_ADD1), "cms_msgSigDigest_add1"},
  119. {ERR_FUNC(CMS_F_CMS_RECEIPTREQUEST_CREATE0),
  120. "CMS_ReceiptRequest_create0"},
  121. {ERR_FUNC(CMS_F_CMS_RECEIPT_VERIFY), "cms_Receipt_verify"},
  122. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_DECRYPT), "CMS_RecipientInfo_decrypt"},
  123. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_ENCRYPT), "CMS_RecipientInfo_encrypt"},
  124. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KARI_ENCRYPT),
  125. "cms_RecipientInfo_kari_encrypt"},
  126. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ALG),
  127. "CMS_RecipientInfo_kari_get0_alg"},
  128. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KARI_GET0_ORIG_ID),
  129. "CMS_RecipientInfo_kari_get0_orig_id"},
  130. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KARI_GET0_REKS),
  131. "CMS_RecipientInfo_kari_get0_reks"},
  132. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KARI_ORIG_ID_CMP),
  133. "CMS_RecipientInfo_kari_orig_id_cmp"},
  134. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KEKRI_DECRYPT),
  135. "CMS_RECIPIENTINFO_KEKRI_DECRYPT"},
  136. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KEKRI_ENCRYPT),
  137. "CMS_RECIPIENTINFO_KEKRI_ENCRYPT"},
  138. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KEKRI_GET0_ID),
  139. "CMS_RecipientInfo_kekri_get0_id"},
  140. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KEKRI_ID_CMP),
  141. "CMS_RecipientInfo_kekri_id_cmp"},
  142. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KTRI_CERT_CMP),
  143. "CMS_RecipientInfo_ktri_cert_cmp"},
  144. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KTRI_DECRYPT),
  145. "CMS_RECIPIENTINFO_KTRI_DECRYPT"},
  146. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KTRI_ENCRYPT),
  147. "CMS_RECIPIENTINFO_KTRI_ENCRYPT"},
  148. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_ALGS),
  149. "CMS_RecipientInfo_ktri_get0_algs"},
  150. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_KTRI_GET0_SIGNER_ID),
  151. "CMS_RecipientInfo_ktri_get0_signer_id"},
  152. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_PWRI_CRYPT),
  153. "cms_RecipientInfo_pwri_crypt"},
  154. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_SET0_KEY),
  155. "CMS_RecipientInfo_set0_key"},
  156. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_SET0_PASSWORD),
  157. "CMS_RecipientInfo_set0_password"},
  158. {ERR_FUNC(CMS_F_CMS_RECIPIENTINFO_SET0_PKEY),
  159. "CMS_RecipientInfo_set0_pkey"},
  160. {ERR_FUNC(CMS_F_CMS_SD_ASN1_CTRL), "CMS_SD_ASN1_CTRL"},
  161. {ERR_FUNC(CMS_F_CMS_SET1_IAS), "cms_set1_ias"},
  162. {ERR_FUNC(CMS_F_CMS_SET1_KEYID), "cms_set1_keyid"},
  163. {ERR_FUNC(CMS_F_CMS_SET1_SIGNERIDENTIFIER), "cms_set1_SignerIdentifier"},
  164. {ERR_FUNC(CMS_F_CMS_SET_DETACHED), "CMS_set_detached"},
  165. {ERR_FUNC(CMS_F_CMS_SIGN), "CMS_sign"},
  166. {ERR_FUNC(CMS_F_CMS_SIGNED_DATA_INIT), "CMS_SIGNED_DATA_INIT"},
  167. {ERR_FUNC(CMS_F_CMS_SIGNERINFO_CONTENT_SIGN),
  168. "CMS_SIGNERINFO_CONTENT_SIGN"},
  169. {ERR_FUNC(CMS_F_CMS_SIGNERINFO_SIGN), "CMS_SignerInfo_sign"},
  170. {ERR_FUNC(CMS_F_CMS_SIGNERINFO_VERIFY), "CMS_SignerInfo_verify"},
  171. {ERR_FUNC(CMS_F_CMS_SIGNERINFO_VERIFY_CERT),
  172. "CMS_SIGNERINFO_VERIFY_CERT"},
  173. {ERR_FUNC(CMS_F_CMS_SIGNERINFO_VERIFY_CONTENT),
  174. "CMS_SignerInfo_verify_content"},
  175. {ERR_FUNC(CMS_F_CMS_SIGN_RECEIPT), "CMS_sign_receipt"},
  176. {ERR_FUNC(CMS_F_CMS_STREAM), "CMS_stream"},
  177. {ERR_FUNC(CMS_F_CMS_UNCOMPRESS), "CMS_uncompress"},
  178. {ERR_FUNC(CMS_F_CMS_VERIFY), "CMS_verify"},
  179. {0, NULL}
  180. };
  181. static ERR_STRING_DATA CMS_str_reasons[] = {
  182. {ERR_REASON(CMS_R_ADD_SIGNER_ERROR), "add signer error"},
  183. {ERR_REASON(CMS_R_CERTIFICATE_ALREADY_PRESENT),
  184. "certificate already present"},
  185. {ERR_REASON(CMS_R_CERTIFICATE_HAS_NO_KEYID), "certificate has no keyid"},
  186. {ERR_REASON(CMS_R_CERTIFICATE_VERIFY_ERROR), "certificate verify error"},
  187. {ERR_REASON(CMS_R_CIPHER_INITIALISATION_ERROR),
  188. "cipher initialisation error"},
  189. {ERR_REASON(CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR),
  190. "cipher parameter initialisation error"},
  191. {ERR_REASON(CMS_R_CMS_DATAFINAL_ERROR), "cms datafinal error"},
  192. {ERR_REASON(CMS_R_CMS_LIB), "cms lib"},
  193. {ERR_REASON(CMS_R_CONTENTIDENTIFIER_MISMATCH),
  194. "contentidentifier mismatch"},
  195. {ERR_REASON(CMS_R_CONTENT_NOT_FOUND), "content not found"},
  196. {ERR_REASON(CMS_R_CONTENT_TYPE_MISMATCH), "content type mismatch"},
  197. {ERR_REASON(CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA),
  198. "content type not compressed data"},
  199. {ERR_REASON(CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA),
  200. "content type not enveloped data"},
  201. {ERR_REASON(CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA),
  202. "content type not signed data"},
  203. {ERR_REASON(CMS_R_CONTENT_VERIFY_ERROR), "content verify error"},
  204. {ERR_REASON(CMS_R_CTRL_ERROR), "ctrl error"},
  205. {ERR_REASON(CMS_R_CTRL_FAILURE), "ctrl failure"},
  206. {ERR_REASON(CMS_R_DECRYPT_ERROR), "decrypt error"},
  207. {ERR_REASON(CMS_R_DIGEST_ERROR), "digest error"},
  208. {ERR_REASON(CMS_R_ERROR_GETTING_PUBLIC_KEY), "error getting public key"},
  209. {ERR_REASON(CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE),
  210. "error reading messagedigest attribute"},
  211. {ERR_REASON(CMS_R_ERROR_SETTING_KEY), "error setting key"},
  212. {ERR_REASON(CMS_R_ERROR_SETTING_RECIPIENTINFO),
  213. "error setting recipientinfo"},
  214. {ERR_REASON(CMS_R_INVALID_ENCRYPTED_KEY_LENGTH),
  215. "invalid encrypted key length"},
  216. {ERR_REASON(CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER),
  217. "invalid key encryption parameter"},
  218. {ERR_REASON(CMS_R_INVALID_KEY_LENGTH), "invalid key length"},
  219. {ERR_REASON(CMS_R_MD_BIO_INIT_ERROR), "md bio init error"},
  220. {ERR_REASON(CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH),
  221. "messagedigest attribute wrong length"},
  222. {ERR_REASON(CMS_R_MESSAGEDIGEST_WRONG_LENGTH),
  223. "messagedigest wrong length"},
  224. {ERR_REASON(CMS_R_MSGSIGDIGEST_ERROR), "msgsigdigest error"},
  225. {ERR_REASON(CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE),
  226. "msgsigdigest verification failure"},
  227. {ERR_REASON(CMS_R_MSGSIGDIGEST_WRONG_LENGTH),
  228. "msgsigdigest wrong length"},
  229. {ERR_REASON(CMS_R_NEED_ONE_SIGNER), "need one signer"},
  230. {ERR_REASON(CMS_R_NOT_A_SIGNED_RECEIPT), "not a signed receipt"},
  231. {ERR_REASON(CMS_R_NOT_ENCRYPTED_DATA), "not encrypted data"},
  232. {ERR_REASON(CMS_R_NOT_KEK), "not kek"},
  233. {ERR_REASON(CMS_R_NOT_KEY_AGREEMENT), "not key agreement"},
  234. {ERR_REASON(CMS_R_NOT_KEY_TRANSPORT), "not key transport"},
  235. {ERR_REASON(CMS_R_NOT_PWRI), "not pwri"},
  236. {ERR_REASON(CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE),
  237. "not supported for this key type"},
  238. {ERR_REASON(CMS_R_NO_CIPHER), "no cipher"},
  239. {ERR_REASON(CMS_R_NO_CONTENT), "no content"},
  240. {ERR_REASON(CMS_R_NO_CONTENT_TYPE), "no content type"},
  241. {ERR_REASON(CMS_R_NO_DEFAULT_DIGEST), "no default digest"},
  242. {ERR_REASON(CMS_R_NO_DIGEST_SET), "no digest set"},
  243. {ERR_REASON(CMS_R_NO_KEY), "no key"},
  244. {ERR_REASON(CMS_R_NO_KEY_OR_CERT), "no key or cert"},
  245. {ERR_REASON(CMS_R_NO_MATCHING_DIGEST), "no matching digest"},
  246. {ERR_REASON(CMS_R_NO_MATCHING_RECIPIENT), "no matching recipient"},
  247. {ERR_REASON(CMS_R_NO_MATCHING_SIGNATURE), "no matching signature"},
  248. {ERR_REASON(CMS_R_NO_MSGSIGDIGEST), "no msgsigdigest"},
  249. {ERR_REASON(CMS_R_NO_PASSWORD), "no password"},
  250. {ERR_REASON(CMS_R_NO_PRIVATE_KEY), "no private key"},
  251. {ERR_REASON(CMS_R_NO_PUBLIC_KEY), "no public key"},
  252. {ERR_REASON(CMS_R_NO_RECEIPT_REQUEST), "no receipt request"},
  253. {ERR_REASON(CMS_R_NO_SIGNERS), "no signers"},
  254. {ERR_REASON(CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE),
  255. "private key does not match certificate"},
  256. {ERR_REASON(CMS_R_RECEIPT_DECODE_ERROR), "receipt decode error"},
  257. {ERR_REASON(CMS_R_RECIPIENT_ERROR), "recipient error"},
  258. {ERR_REASON(CMS_R_SIGNER_CERTIFICATE_NOT_FOUND),
  259. "signer certificate not found"},
  260. {ERR_REASON(CMS_R_SIGNFINAL_ERROR), "signfinal error"},
  261. {ERR_REASON(CMS_R_SMIME_TEXT_ERROR), "smime text error"},
  262. {ERR_REASON(CMS_R_STORE_INIT_ERROR), "store init error"},
  263. {ERR_REASON(CMS_R_TYPE_NOT_COMPRESSED_DATA), "type not compressed data"},
  264. {ERR_REASON(CMS_R_TYPE_NOT_DATA), "type not data"},
  265. {ERR_REASON(CMS_R_TYPE_NOT_DIGESTED_DATA), "type not digested data"},
  266. {ERR_REASON(CMS_R_TYPE_NOT_ENCRYPTED_DATA), "type not encrypted data"},
  267. {ERR_REASON(CMS_R_TYPE_NOT_ENVELOPED_DATA), "type not enveloped data"},
  268. {ERR_REASON(CMS_R_UNABLE_TO_FINALIZE_CONTEXT),
  269. "unable to finalize context"},
  270. {ERR_REASON(CMS_R_UNKNOWN_CIPHER), "unknown cipher"},
  271. {ERR_REASON(CMS_R_UNKNOWN_DIGEST_ALGORIHM), "unknown digest algorihm"},
  272. {ERR_REASON(CMS_R_UNKNOWN_ID), "unknown id"},
  273. {ERR_REASON(CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM),
  274. "unsupported compression algorithm"},
  275. {ERR_REASON(CMS_R_UNSUPPORTED_CONTENT_TYPE), "unsupported content type"},
  276. {ERR_REASON(CMS_R_UNSUPPORTED_KEK_ALGORITHM),
  277. "unsupported kek algorithm"},
  278. {ERR_REASON(CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM),
  279. "unsupported key encryption algorithm"},
  280. {ERR_REASON(CMS_R_UNSUPPORTED_RECIPIENT_TYPE),
  281. "unsupported recipient type"},
  282. {ERR_REASON(CMS_R_UNSUPPORTED_RECPIENTINFO_TYPE),
  283. "unsupported recpientinfo type"},
  284. {ERR_REASON(CMS_R_UNSUPPORTED_TYPE), "unsupported type"},
  285. {ERR_REASON(CMS_R_UNWRAP_ERROR), "unwrap error"},
  286. {ERR_REASON(CMS_R_UNWRAP_FAILURE), "unwrap failure"},
  287. {ERR_REASON(CMS_R_VERIFICATION_FAILURE), "verification failure"},
  288. {ERR_REASON(CMS_R_WRAP_ERROR), "wrap error"},
  289. {0, NULL}
  290. };
  291. #endif
  292. void ERR_load_CMS_strings(void)
  293. {
  294. #ifndef OPENSSL_NO_ERR
  295. if (ERR_func_error_string(CMS_str_functs[0].error) == NULL) {
  296. ERR_load_strings(0, CMS_str_functs);
  297. ERR_load_strings(0, CMS_str_reasons);
  298. }
  299. #endif
  300. }