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