xref: /netbsd-src/crypto/external/bsd/openssl/dist/include/openssl/cmserr.h (revision 4778aede4608a995eaeedca856a7a71a2fa5c675)
113d40330Schristos /*
213d40330Schristos  * Generated by util/mkerr.pl DO NOT EDIT
3*4778aedeSchristos  * Copyright 1995-2023 The OpenSSL Project Authors. All Rights Reserved.
413d40330Schristos  *
5b0d17251Schristos  * Licensed under the Apache License 2.0 (the "License").  You may not use
613d40330Schristos  * this file except in compliance with the License.  You can obtain a copy
713d40330Schristos  * in the file LICENSE in the source distribution or at
813d40330Schristos  * https://www.openssl.org/source/license.html
913d40330Schristos  */
1013d40330Schristos 
11b0d17251Schristos #ifndef OPENSSL_CMSERR_H
12b0d17251Schristos # define OPENSSL_CMSERR_H
13b0d17251Schristos # pragma once
144ce06407Schristos 
1513d40330Schristos # include <openssl/opensslconf.h>
16b0d17251Schristos # include <openssl/symhacks.h>
17b0d17251Schristos # include <openssl/cryptoerr_legacy.h>
18b0d17251Schristos 
1913d40330Schristos 
2013d40330Schristos # ifndef OPENSSL_NO_CMS
2113d40330Schristos 
2213d40330Schristos 
2313d40330Schristos /*
2413d40330Schristos  * CMS reason codes.
2513d40330Schristos  */
2613d40330Schristos #  define CMS_R_ADD_SIGNER_ERROR                           99
274ce06407Schristos #  define CMS_R_ATTRIBUTE_ERROR                            161
2813d40330Schristos #  define CMS_R_CERTIFICATE_ALREADY_PRESENT                175
2913d40330Schristos #  define CMS_R_CERTIFICATE_HAS_NO_KEYID                   160
3013d40330Schristos #  define CMS_R_CERTIFICATE_VERIFY_ERROR                   100
31b0d17251Schristos #  define CMS_R_CIPHER_AEAD_SET_TAG_ERROR                  184
32b0d17251Schristos #  define CMS_R_CIPHER_GET_TAG                             185
3313d40330Schristos #  define CMS_R_CIPHER_INITIALISATION_ERROR                101
3413d40330Schristos #  define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR      102
3513d40330Schristos #  define CMS_R_CMS_DATAFINAL_ERROR                        103
3613d40330Schristos #  define CMS_R_CMS_LIB                                    104
3713d40330Schristos #  define CMS_R_CONTENTIDENTIFIER_MISMATCH                 170
3813d40330Schristos #  define CMS_R_CONTENT_NOT_FOUND                          105
3913d40330Schristos #  define CMS_R_CONTENT_TYPE_MISMATCH                      171
4013d40330Schristos #  define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA           106
4113d40330Schristos #  define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA            107
4213d40330Schristos #  define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA               108
4313d40330Schristos #  define CMS_R_CONTENT_VERIFY_ERROR                       109
4413d40330Schristos #  define CMS_R_CTRL_ERROR                                 110
4513d40330Schristos #  define CMS_R_CTRL_FAILURE                               111
46b0d17251Schristos #  define CMS_R_DECODE_ERROR                               187
4713d40330Schristos #  define CMS_R_DECRYPT_ERROR                              112
4813d40330Schristos #  define CMS_R_ERROR_GETTING_PUBLIC_KEY                   113
4913d40330Schristos #  define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE      114
5013d40330Schristos #  define CMS_R_ERROR_SETTING_KEY                          115
5113d40330Schristos #  define CMS_R_ERROR_SETTING_RECIPIENTINFO                116
52b0d17251Schristos #  define CMS_R_ESS_SIGNING_CERTID_MISMATCH_ERROR          183
5313d40330Schristos #  define CMS_R_INVALID_ENCRYPTED_KEY_LENGTH               117
5413d40330Schristos #  define CMS_R_INVALID_KEY_ENCRYPTION_PARAMETER           176
5513d40330Schristos #  define CMS_R_INVALID_KEY_LENGTH                         118
56b0d17251Schristos #  define CMS_R_INVALID_LABEL                              190
57b0d17251Schristos #  define CMS_R_INVALID_OAEP_PARAMETERS                    191
58b0d17251Schristos #  define CMS_R_KDF_PARAMETER_ERROR                        186
5913d40330Schristos #  define CMS_R_MD_BIO_INIT_ERROR                          119
6013d40330Schristos #  define CMS_R_MESSAGEDIGEST_ATTRIBUTE_WRONG_LENGTH       120
6113d40330Schristos #  define CMS_R_MESSAGEDIGEST_WRONG_LENGTH                 121
6213d40330Schristos #  define CMS_R_MSGSIGDIGEST_ERROR                         172
6313d40330Schristos #  define CMS_R_MSGSIGDIGEST_VERIFICATION_FAILURE          162
6413d40330Schristos #  define CMS_R_MSGSIGDIGEST_WRONG_LENGTH                  163
6513d40330Schristos #  define CMS_R_NEED_ONE_SIGNER                            164
6613d40330Schristos #  define CMS_R_NOT_A_SIGNED_RECEIPT                       165
6713d40330Schristos #  define CMS_R_NOT_ENCRYPTED_DATA                         122
6813d40330Schristos #  define CMS_R_NOT_KEK                                    123
6913d40330Schristos #  define CMS_R_NOT_KEY_AGREEMENT                          181
7013d40330Schristos #  define CMS_R_NOT_KEY_TRANSPORT                          124
7113d40330Schristos #  define CMS_R_NOT_PWRI                                   177
7213d40330Schristos #  define CMS_R_NOT_SUPPORTED_FOR_THIS_KEY_TYPE            125
7313d40330Schristos #  define CMS_R_NO_CIPHER                                  126
7413d40330Schristos #  define CMS_R_NO_CONTENT                                 127
7513d40330Schristos #  define CMS_R_NO_CONTENT_TYPE                            173
7613d40330Schristos #  define CMS_R_NO_DEFAULT_DIGEST                          128
7713d40330Schristos #  define CMS_R_NO_DIGEST_SET                              129
7813d40330Schristos #  define CMS_R_NO_KEY                                     130
7913d40330Schristos #  define CMS_R_NO_KEY_OR_CERT                             174
8013d40330Schristos #  define CMS_R_NO_MATCHING_DIGEST                         131
8113d40330Schristos #  define CMS_R_NO_MATCHING_RECIPIENT                      132
8213d40330Schristos #  define CMS_R_NO_MATCHING_SIGNATURE                      166
8313d40330Schristos #  define CMS_R_NO_MSGSIGDIGEST                            167
8413d40330Schristos #  define CMS_R_NO_PASSWORD                                178
8513d40330Schristos #  define CMS_R_NO_PRIVATE_KEY                             133
8613d40330Schristos #  define CMS_R_NO_PUBLIC_KEY                              134
8713d40330Schristos #  define CMS_R_NO_RECEIPT_REQUEST                         168
8813d40330Schristos #  define CMS_R_NO_SIGNERS                                 135
89b0d17251Schristos #  define CMS_R_PEER_KEY_ERROR                             188
9013d40330Schristos #  define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE     136
9113d40330Schristos #  define CMS_R_RECEIPT_DECODE_ERROR                       169
9213d40330Schristos #  define CMS_R_RECIPIENT_ERROR                            137
93b0d17251Schristos #  define CMS_R_SHARED_INFO_ERROR                          189
9413d40330Schristos #  define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND               138
9513d40330Schristos #  define CMS_R_SIGNFINAL_ERROR                            139
9613d40330Schristos #  define CMS_R_SMIME_TEXT_ERROR                           140
9713d40330Schristos #  define CMS_R_STORE_INIT_ERROR                           141
9813d40330Schristos #  define CMS_R_TYPE_NOT_COMPRESSED_DATA                   142
9913d40330Schristos #  define CMS_R_TYPE_NOT_DATA                              143
10013d40330Schristos #  define CMS_R_TYPE_NOT_DIGESTED_DATA                     144
10113d40330Schristos #  define CMS_R_TYPE_NOT_ENCRYPTED_DATA                    145
10213d40330Schristos #  define CMS_R_TYPE_NOT_ENVELOPED_DATA                    146
10313d40330Schristos #  define CMS_R_UNABLE_TO_FINALIZE_CONTEXT                 147
10413d40330Schristos #  define CMS_R_UNKNOWN_CIPHER                             148
10513d40330Schristos #  define CMS_R_UNKNOWN_DIGEST_ALGORITHM                   149
10613d40330Schristos #  define CMS_R_UNKNOWN_ID                                 150
10713d40330Schristos #  define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM          151
1086f6db51eSchristos #  define CMS_R_UNSUPPORTED_CONTENT_ENCRYPTION_ALGORITHM   194
10913d40330Schristos #  define CMS_R_UNSUPPORTED_CONTENT_TYPE                   152
110b0d17251Schristos #  define CMS_R_UNSUPPORTED_ENCRYPTION_TYPE                192
11113d40330Schristos #  define CMS_R_UNSUPPORTED_KEK_ALGORITHM                  153
11213d40330Schristos #  define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM       179
113b0d17251Schristos #  define CMS_R_UNSUPPORTED_LABEL_SOURCE                   193
11413d40330Schristos #  define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE             155
11513d40330Schristos #  define CMS_R_UNSUPPORTED_RECIPIENT_TYPE                 154
116*4778aedeSchristos #  define CMS_R_UNSUPPORTED_SIGNATURE_ALGORITHM            195
11713d40330Schristos #  define CMS_R_UNSUPPORTED_TYPE                           156
11813d40330Schristos #  define CMS_R_UNWRAP_ERROR                               157
11913d40330Schristos #  define CMS_R_UNWRAP_FAILURE                             180
12013d40330Schristos #  define CMS_R_VERIFICATION_FAILURE                       158
12113d40330Schristos #  define CMS_R_WRAP_ERROR                                 159
12213d40330Schristos 
12313d40330Schristos # endif
12413d40330Schristos #endif
125