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
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
20# ifndef OPENSSL_NO_CMS
21
22
23/*
24 * CMS reason codes.
25 */
26# define CMS_R_ADD_SIGNER_ERROR 99
27# define CMS_R_ATTRIBUTE_ERROR 161
28# define CMS_R_CERTIFICATE_ALREADY_PRESENT 175
29# define CMS_R_CERTIFICATE_HAS_NO_KEYID 160
30# define CMS_R_CERTIFICATE_VERIFY_ERROR 100
31# define CMS_R_CIPHER_AEAD_SET_TAG_ERROR 184
32# define CMS_R_CIPHER_GET_TAG 185
33# define CMS_R_CIPHER_INITIALISATION_ERROR 101
34# define CMS_R_CIPHER_PARAMETER_INITIALISATION_ERROR 102
35# define CMS_R_CMS_DATAFINAL_ERROR 103
36# define CMS_R_CMS_LIB 104
37# define CMS_R_CONTENTIDENTIFIER_MISMATCH 170
38# define CMS_R_CONTENT_NOT_FOUND 105
39# define CMS_R_CONTENT_TYPE_MISMATCH 171
40# define CMS_R_CONTENT_TYPE_NOT_COMPRESSED_DATA 106
41# define CMS_R_CONTENT_TYPE_NOT_ENVELOPED_DATA 107
42# define CMS_R_CONTENT_TYPE_NOT_SIGNED_DATA 108
43# define CMS_R_CONTENT_VERIFY_ERROR 109
44# define CMS_R_CTRL_ERROR 110
45# define CMS_R_CTRL_FAILURE 111
46# define CMS_R_DECODE_ERROR 187
47# define CMS_R_DECRYPT_ERROR 112
48# define CMS_R_ERROR_GETTING_PUBLIC_KEY 113
49# define CMS_R_ERROR_READING_MESSAGEDIGEST_ATTRIBUTE 114
50# define CMS_R_ERROR_SETTING_KEY 115
51# define CMS_R_ERROR_SETTING_RECIPIENTINFO 116
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_PEER_KEY_ERROR 188
90# define CMS_R_PRIVATE_KEY_DOES_NOT_MATCH_CERTIFICATE 136
91# define CMS_R_RECEIPT_DECODE_ERROR 169
92# define CMS_R_RECIPIENT_ERROR 137
93# define CMS_R_SHARED_INFO_ERROR 189
94# define CMS_R_SIGNER_CERTIFICATE_NOT_FOUND 138
95# define CMS_R_SIGNFINAL_ERROR 139
96# define CMS_R_SMIME_TEXT_ERROR 140
97# define CMS_R_STORE_INIT_ERROR 141
98# define CMS_R_TYPE_NOT_COMPRESSED_DATA 142
99# define CMS_R_TYPE_NOT_DATA 143
100# define CMS_R_TYPE_NOT_DIGESTED_DATA 144
101# define CMS_R_TYPE_NOT_ENCRYPTED_DATA 145
102# define CMS_R_TYPE_NOT_ENVELOPED_DATA 146
103# define CMS_R_UNABLE_TO_FINALIZE_CONTEXT 147
104# define CMS_R_UNKNOWN_CIPHER 148
105# define CMS_R_UNKNOWN_DIGEST_ALGORITHM 149
106# define CMS_R_UNKNOWN_ID 150
107# define CMS_R_UNSUPPORTED_COMPRESSION_ALGORITHM 151
108# define CMS_R_UNSUPPORTED_CONTENT_TYPE 152
109# define CMS_R_UNSUPPORTED_ENCRYPTION_TYPE 192
110# define CMS_R_UNSUPPORTED_KEK_ALGORITHM 153
111# define CMS_R_UNSUPPORTED_KEY_ENCRYPTION_ALGORITHM 179
112# define CMS_R_UNSUPPORTED_LABEL_SOURCE 193
113# define CMS_R_UNSUPPORTED_RECIPIENTINFO_TYPE 155
114# define CMS_R_UNSUPPORTED_RECIPIENT_TYPE 154
115# define CMS_R_UNSUPPORTED_TYPE 156
116# define CMS_R_UNWRAP_ERROR 157
117# define CMS_R_UNWRAP_FAILURE 180
118# define CMS_R_VERIFICATION_FAILURE 158
119# define CMS_R_WRAP_ERROR 159
120
121# endif
122#endif
123

source code of include/openssl/cmserr.h