You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

cmserr.h 4.3 kB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. /*
  2. * Generated by util/mkerr.pl DO NOT EDIT
  3. * Copyright 1995-2021 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. #ifndef OPENSSL_CMSERR_H
  11. #define OPENSSL_CMSERR_H
  12. #pragma once
  13. #include <openssl/opensslconf.h>
  14. #include <openssl/symhacks.h>
  15. #include <openssl/cryptoerr_legacy.h>
  16. #ifndef OPENSSL_NO_CMS
  17. /*
  18. * CMS reason codes.
  19. */
  20. #define CMS_R_ADD_SIGNER_ERROR 99
  21. #define CMS_R_ATTRIBUTE_ERROR 161
  22. #define CMS_R_CERTIFICATE_ALREADY_PRESENT 175
  23. #define CMS_R_CERTIFICATE_HAS_NO_KEYID 160
  24. #define CMS_R_CERTIFICATE_VERIFY_ERROR 100
  25. #define CMS_R_CIPHER_AEAD_SET_TAG_ERROR 184
  26. #define CMS_R_CIPHER_GET_TAG 185
  27. #define CMS_R_CIPHER_INITIALISATION_ERROR 101
  28. #define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR 102
  29. #define CMS_R_CMS_DATAFINAL_ERROR 103
  30. #define CMS_R_CMS_LIB 104
  31. #define CMS_R_CONTENTIDENTIFIER_MISMATCH 170
  32. #define CMS_R_CONTENT_NOT_FOUND 105
  33. #define CMS_R_CONTENT_TYPE_MISMATCH 171
  34. #define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA 106
  35. #define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA 107
  36. #define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA 108
  37. #define CMS_R_CONTENT_VERIFY_ERROR 109
  38. #define CMS_R_CTRL_ERROR 110
  39. #define CMS_R_CTRL_FAILURE 111
  40. #define CMS_R_DECODE_ERROR 187
  41. #define CMS_R_DECRYPT_ERROR 112
  42. #define CMS_R_ERROR_GETTING_PUBLIC_KEY 113
  43. #define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE 114
  44. #define CMS_R_ERROR_SETTING_KEY 115
  45. #define CMS_R_ERROR_SETTING_RECIPIENTINFO 116
  46. #define CMS_R_ESS_SIGNING_CERTID_MISMATCH_ERROR 183
  47. #define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH 117
  48. #define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER 176
  49. #define CMS_R_INVALID_KEY_LENGTH 118
  50. #define CMS_R_INVALID_LABEL 190
  51. #define CMS_R_INVALID_OAEP_PARAMETERS 191
  52. #define CMS_R_KDF_PARAMETER_ERROR 186
  53. #define CMS_R_MD_BIO_INIT_ERROR 119
  54. #define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH 120
  55. #define CMS_R_MESSAGEDIGEST_WRONG_LENGTH 121
  56. #define CMS_R_MSGSIGDIGEST_ERROR 172
  57. #define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE 162
  58. #define CMS_R_MSGSIGDIGEST_WRONG_LENGTH 163
  59. #define CMS_R_NEED_ONE_SIGNER 164
  60. #define CMS_R_NOT_A_SIGNED_RECEIPT 165
  61. #define CMS_R_NOT_ENCRYPTED_DATA 122
  62. #define CMS_R_NOT_KEK 123
  63. #define CMS_R_NOT_KEY_AGREEMENT 181
  64. #define CMS_R_NOT_KEY_TRANSPORT 124
  65. #define CMS_R_NOT_PWRI 177
  66. #define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE 125
  67. #define CMS_R_NO_CIPHER 126
  68. #define CMS_R_NO_CONTENT 127
  69. #define CMS_R_NO_CONTENT_TYPE 173
  70. #define CMS_R_NO_DEFAULT_DIGEST 128
  71. #define CMS_R_NO_DIGEST_SET 129
  72. #define CMS_R_NO_KEY 130
  73. #define CMS_R_NO_KEY_OR_CERT 174
  74. #define CMS_R_NO_MATCHING_DIGEST 131
  75. #define CMS_R_NO_MATCHING_RECIPIENT 132
  76. #define CMS_R_NO_MATCHING_SIGNATURE 166
  77. #define CMS_R_NO_MSGSIGDIGEST 167
  78. #define CMS_R_NO_PASSWORD 178
  79. #define CMS_R_NO_PRIVATE_KEY 133
  80. #define CMS_R_NO_PUBLIC_KEY 134
  81. #define CMS_R_NO_RECEIPT_REQUEST 168
  82. #define CMS_R_NO_SIGNERS 135
  83. #define CMS_R_PEER_KEY_ERROR 188
  84. #define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 136
  85. #define CMS_R_RECEIPT_DECODE_ERROR 169
  86. #define CMS_R_RECIPIENT_ERROR 137
  87. #define CMS_R_SHARED_INFO_ERROR 189
  88. #define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND 138
  89. #define CMS_R_SIGNFINAL_ERROR 139
  90. #define CMS_R_SMIME_TEXT_ERROR 140
  91. #define CMS_R_STORE_INIT_ERROR 141
  92. #define CMS_R_TYPE_NOT_COMPRESSED_DATA 142
  93. #define CMS_R_TYPE_NOT_DATA 143
  94. #define CMS_R_TYPE_NOT_DIGESTED_DATA 144
  95. #define CMS_R_TYPE_NOT_ENCRYPTED_DATA 145
  96. #define CMS_R_TYPE_NOT_ENVELOPED_DATA 146
  97. #define CMS_R_UNABLE_TO_FINALIZE_CONTEXT 147
  98. #define CMS_R_UNKNOWN_CIPHER 148
  99. #define CMS_R_UNKNOWN_DIGEST_ALGORITHM 149
  100. #define CMS_R_UNKNOWN_ID 150
  101. #define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM 151
  102. #define CMS_R_UNSUPPORTED_CONTENT_TYPE 152
  103. #define CMS_R_UNSUPPORTED_ENCRYPTION_TYPE 192
  104. #define CMS_R_UNSUPPORTED_KEK_ALGORITHM 153
  105. #define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM 179
  106. #define CMS_R_UNSUPPORTED_LABEL_SOURCE 193
  107. #define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE 155
  108. #define CMS_R_UNSUPPORTED_RECIPIENT_TYPE 154
  109. #define CMS_R_UNSUPPORTED_TYPE 156
  110. #define CMS_R_UNWRAP_ERROR 157
  111. #define CMS_R_UNWRAP_FAILURE 180
  112. #define CMS_R_VERIFICATION_FAILURE 158
  113. #define CMS_R_WRAP_ERROR 159
  114. #endif
  115. #endif