Fix names of cert stack functions.
[openssl.git] / ssl / ssl.err
1 /* Error codes for the SSL functions. */
2
3 /* Function codes. */
4 #define SSL_F_CLIENT_CERTIFICATE                         100
5 #define SSL_F_CLIENT_HELLO                               101
6 #define SSL_F_CLIENT_MASTER_KEY                          102
7 #define SSL_F_D2I_SSL_SESSION                            103
8 #define SSL_F_DO_SSL3_WRITE                              104
9 #define SSL_F_GET_CLIENT_FINISHED                        105
10 #define SSL_F_GET_CLIENT_HELLO                           106
11 #define SSL_F_GET_CLIENT_MASTER_KEY                      107
12 #define SSL_F_GET_SERVER_FINISHED                        108
13 #define SSL_F_GET_SERVER_HELLO                           109
14 #define SSL_F_GET_SERVER_VERIFY                          110
15 #define SSL_F_I2D_SSL_SESSION                            111
16 #define SSL_F_READ_N                                     112
17 #define SSL_F_REQUEST_CERTIFICATE                        113
18 #define SSL_F_SERVER_HELLO                               114
19 #define SSL_F_SSL23_ACCEPT                               115
20 #define SSL_F_SSL23_CLIENT_HELLO                         116
21 #define SSL_F_SSL23_CONNECT                              117
22 #define SSL_F_SSL23_GET_CLIENT_HELLO                     118
23 #define SSL_F_SSL23_GET_SERVER_HELLO                     119
24 #define SSL_F_SSL23_READ                                 120
25 #define SSL_F_SSL23_WRITE                                121
26 #define SSL_F_SSL2_ACCEPT                                122
27 #define SSL_F_SSL2_CONNECT                               123
28 #define SSL_F_SSL2_ENC_INIT                              124
29 #define SSL_F_SSL2_READ                                  125
30 #define SSL_F_SSL2_SET_CERTIFICATE                       126
31 #define SSL_F_SSL2_WRITE                                 127
32 #define SSL_F_SSL3_ACCEPT                                128
33 #define SSL_F_SSL3_CHANGE_CIPHER_STATE                   129
34 #define SSL_F_SSL3_CHECK_CERT_AND_ALGORITHM              130
35 #define SSL_F_SSL3_CLIENT_HELLO                          131
36 #define SSL_F_SSL3_CONNECT                               132
37 #define SSL_F_SSL3_CTRL                                  213
38 #define SSL_F_SSL3_CTX_CTRL                              133
39 #define SSL_F_SSL3_ENC                                   134
40 #define SSL_F_SSL3_GET_CERTIFICATE_REQUEST               135
41 #define SSL_F_SSL3_GET_CERT_VERIFY                       136
42 #define SSL_F_SSL3_GET_CLIENT_CERTIFICATE                137
43 #define SSL_F_SSL3_GET_CLIENT_HELLO                      138
44 #define SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE               139
45 #define SSL_F_SSL3_GET_FINISHED                          140
46 #define SSL_F_SSL3_GET_KEY_EXCHANGE                      141
47 #define SSL_F_SSL3_GET_MESSAGE                           142
48 #define SSL_F_SSL3_GET_RECORD                            143
49 #define SSL_F_SSL3_GET_SERVER_CERTIFICATE                144
50 #define SSL_F_SSL3_GET_SERVER_DONE                       145
51 #define SSL_F_SSL3_GET_SERVER_HELLO                      146
52 #define SSL_F_SSL3_OUTPUT_CERT_CHAIN                     147
53 #define SSL_F_SSL3_READ_BYTES                            148
54 #define SSL_F_SSL3_READ_N                                149
55 #define SSL_F_SSL3_SEND_CERTIFICATE_REQUEST              150
56 #define SSL_F_SSL3_SEND_CLIENT_CERTIFICATE               151
57 #define SSL_F_SSL3_SEND_CLIENT_KEY_EXCHANGE              152
58 #define SSL_F_SSL3_SEND_CLIENT_VERIFY                    153
59 #define SSL_F_SSL3_SEND_SERVER_CERTIFICATE               154
60 #define SSL_F_SSL3_SEND_SERVER_KEY_EXCHANGE              155
61 #define SSL_F_SSL3_SETUP_BUFFERS                         156
62 #define SSL_F_SSL3_SETUP_KEY_BLOCK                       157
63 #define SSL_F_SSL3_WRITE_BYTES                           158
64 #define SSL_F_SSL3_WRITE_PENDING                         159
65 #define SSL_F_SSL_ADD_DIR_CERT_SUBJECTS_TO_STACK         215
66 #define SSL_F_SSL_ADD_FILE_CERT_SUBJECTS_TO_STACK        216
67 #define SSL_F_SSL_BAD_METHOD                             160
68 #define SSL_F_SSL_BYTES_TO_CIPHER_LIST                   161
69 #define SSL_F_SSL_CERT_INSTANTIATE                       214
70 #define SSL_F_SSL_CERT_NEW                               162
71 #define SSL_F_SSL_CHECK_PRIVATE_KEY                      163
72 #define SSL_F_SSL_CLEAR                                  164
73 #define SSL_F_SSL_COMP_ADD_COMPRESSION_METHOD            165
74 #define SSL_F_SSL_CREATE_CIPHER_LIST                     166
75 #define SSL_F_SSL_CTX_CHECK_PRIVATE_KEY                  168
76 #define SSL_F_SSL_CTX_NEW                                169
77 #define SSL_F_SSL_CTX_SET_SSL_VERSION                    170
78 #define SSL_F_SSL_CTX_USE_CERTIFICATE                    171
79 #define SSL_F_SSL_CTX_USE_CERTIFICATE_ASN1               172
80 #define SSL_F_SSL_CTX_USE_CERTIFICATE_FILE               173
81 #define SSL_F_SSL_CTX_USE_PRIVATEKEY                     174
82 #define SSL_F_SSL_CTX_USE_PRIVATEKEY_ASN1                175
83 #define SSL_F_SSL_CTX_USE_PRIVATEKEY_FILE                176
84 #define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY                  177
85 #define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_ASN1             178
86 #define SSL_F_SSL_CTX_USE_RSAPRIVATEKEY_FILE             179
87 #define SSL_F_SSL_DO_HANDSHAKE                           180
88 #define SSL_F_SSL_GET_NEW_SESSION                        181
89 #define SSL_F_SSL_GET_SERVER_SEND_CERT                   182
90 #define SSL_F_SSL_GET_SIGN_PKEY                          183
91 #define SSL_F_SSL_INIT_WBIO_BUFFER                       184
92 #define SSL_F_SSL_LOAD_CLIENT_CA_FILE                    185
93 #define SSL_F_SSL_NEW                                    186
94 #define SSL_F_SSL_RSA_PRIVATE_DECRYPT                    187
95 #define SSL_F_SSL_RSA_PUBLIC_ENCRYPT                     188
96 #define SSL_F_SSL_SESSION_NEW                            189
97 #define SSL_F_SSL_SESSION_PRINT_FP                       190
98 #define SSL_F_SSL_SET_CERT                               191
99 #define SSL_F_SSL_SET_FD                                 192
100 #define SSL_F_SSL_SET_PKEY                               193
101 #define SSL_F_SSL_SET_RFD                                194
102 #define SSL_F_SSL_SET_SESSION                            195
103 #define SSL_F_SSL_SET_WFD                                196
104 #define SSL_F_SSL_UNDEFINED_FUNCTION                     197
105 #define SSL_F_SSL_USE_CERTIFICATE                        198
106 #define SSL_F_SSL_USE_CERTIFICATE_ASN1                   199
107 #define SSL_F_SSL_USE_CERTIFICATE_FILE                   200
108 #define SSL_F_SSL_USE_PRIVATEKEY                         201
109 #define SSL_F_SSL_USE_PRIVATEKEY_ASN1                    202
110 #define SSL_F_SSL_USE_PRIVATEKEY_FILE                    203
111 #define SSL_F_SSL_USE_RSAPRIVATEKEY                      204
112 #define SSL_F_SSL_USE_RSAPRIVATEKEY_ASN1                 205
113 #define SSL_F_SSL_USE_RSAPRIVATEKEY_FILE                 206
114 #define SSL_F_SSL_VERIFY_CERT_CHAIN                      207
115 #define SSL_F_SSL_WRITE                                  208
116 #define SSL_F_TLS1_CHANGE_CIPHER_STATE                   209
117 #define SSL_F_TLS1_ENC                                   210
118 #define SSL_F_TLS1_SETUP_KEY_BLOCK                       211
119 #define SSL_F_WRITE_PENDING                              212
120
121 /* Reason codes. */
122 #define SSL_R_APP_DATA_IN_HANDSHAKE                      100
123 #define SSL_R_BAD_ALERT_RECORD                           101
124 #define SSL_R_BAD_AUTHENTICATION_TYPE                    102
125 #define SSL_R_BAD_CHANGE_CIPHER_SPEC                     103
126 #define SSL_R_BAD_CHECKSUM                               104
127 #define SSL_R_BAD_CLIENT_REQUEST                         105
128 #define SSL_R_BAD_DATA_RETURNED_BY_CALLBACK              106
129 #define SSL_R_BAD_DECOMPRESSION                          107
130 #define SSL_R_BAD_DH_G_LENGTH                            108
131 #define SSL_R_BAD_DH_PUB_KEY_LENGTH                      109
132 #define SSL_R_BAD_DH_P_LENGTH                            110
133 #define SSL_R_BAD_DIGEST_LENGTH                          111
134 #define SSL_R_BAD_DSA_SIGNATURE                          112
135 #define SSL_R_BAD_MAC_DECODE                             113
136 #define SSL_R_BAD_MESSAGE_TYPE                           114
137 #define SSL_R_BAD_PACKET_LENGTH                          115
138 #define SSL_R_BAD_PROTOCOL_VERSION_NUMBER                116
139 #define SSL_R_BAD_RESPONSE_ARGUMENT                      117
140 #define SSL_R_BAD_RSA_DECRYPT                            118
141 #define SSL_R_BAD_RSA_ENCRYPT                            119
142 #define SSL_R_BAD_RSA_E_LENGTH                           120
143 #define SSL_R_BAD_RSA_MODULUS_LENGTH                     121
144 #define SSL_R_BAD_RSA_SIGNATURE                          122
145 #define SSL_R_BAD_SIGNATURE                              123
146 #define SSL_R_BAD_SSL_FILETYPE                           124
147 #define SSL_R_BAD_SSL_SESSION_ID_LENGTH                  125
148 #define SSL_R_BAD_STATE                                  126
149 #define SSL_R_BAD_WRITE_RETRY                            127
150 #define SSL_R_BIO_NOT_SET                                128
151 #define SSL_R_BLOCK_CIPHER_PAD_IS_WRONG                  129
152 #define SSL_R_BN_LIB                                     130
153 #define SSL_R_CA_DN_LENGTH_MISMATCH                      131
154 #define SSL_R_CA_DN_TOO_LONG                             132
155 #define SSL_R_CCS_RECEIVED_EARLY                         133
156 #define SSL_R_CERTIFICATE_VERIFY_FAILED                  134
157 #define SSL_R_CERT_LENGTH_MISMATCH                       135
158 #define SSL_R_CHALLENGE_IS_DIFFERENT                     136
159 #define SSL_R_CIPHER_CODE_WRONG_LENGTH                   137
160 #define SSL_R_CIPHER_OR_HASH_UNAVAILABLE                 138
161 #define SSL_R_CIPHER_TABLE_SRC_ERROR                     139
162 #define SSL_R_COMPRESSED_LENGTH_TOO_LONG                 140
163 #define SSL_R_COMPRESSION_FAILURE                        141
164 #define SSL_R_COMPRESSION_LIBRARY_ERROR                  142
165 #define SSL_R_CONNECTION_ID_IS_DIFFERENT                 143
166 #define SSL_R_CONNECTION_TYPE_NOT_SET                    144
167 #define SSL_R_DATA_BETWEEN_CCS_AND_FINISHED              145
168 #define SSL_R_DATA_LENGTH_TOO_LONG                       146
169 #define SSL_R_DECRYPTION_FAILED                          147
170 #define SSL_R_DH_PUBLIC_VALUE_LENGTH_IS_WRONG            148
171 #define SSL_R_DIGEST_CHECK_FAILED                        149
172 #define SSL_R_ENCRYPTED_LENGTH_TOO_LONG                  150
173 #define SSL_R_ERROR_IN_RECEIVED_CIPHER_LIST              151
174 #define SSL_R_EXCESSIVE_MESSAGE_SIZE                     152
175 #define SSL_R_EXTRA_DATA_IN_MESSAGE                      153
176 #define SSL_R_GOT_A_FIN_BEFORE_A_CCS                     154
177 #define SSL_R_HTTPS_PROXY_REQUEST                        155
178 #define SSL_R_HTTP_REQUEST                               156
179 #define SSL_R_INTERNAL_ERROR                             157
180 #define SSL_R_INVALID_CHALLENGE_LENGTH                   158
181 #define SSL_R_LENGTH_MISMATCH                            159
182 #define SSL_R_LENGTH_TOO_SHORT                           160
183 #define SSL_R_LIBRARY_HAS_NO_CIPHERS                     161
184 #define SSL_R_MISSING_DH_DSA_CERT                        162
185 #define SSL_R_MISSING_DH_KEY                             163
186 #define SSL_R_MISSING_DH_RSA_CERT                        164
187 #define SSL_R_MISSING_DSA_SIGNING_CERT                   165
188 #define SSL_R_MISSING_EXPORT_TMP_DH_KEY                  166
189 #define SSL_R_MISSING_EXPORT_TMP_RSA_KEY                 167
190 #define SSL_R_MISSING_RSA_CERTIFICATE                    168
191 #define SSL_R_MISSING_RSA_ENCRYPTING_CERT                169
192 #define SSL_R_MISSING_RSA_SIGNING_CERT                   170
193 #define SSL_R_MISSING_TMP_DH_KEY                         171
194 #define SSL_R_MISSING_TMP_RSA_KEY                        172
195 #define SSL_R_MISSING_TMP_RSA_PKEY                       173
196 #define SSL_R_MISSING_VERIFY_MESSAGE                     174
197 #define SSL_R_NON_SSLV2_INITIAL_PACKET                   175
198 #define SSL_R_NO_CERTIFICATES_RETURNED                   176
199 #define SSL_R_NO_CERTIFICATE_ASSIGNED                    177
200 #define SSL_R_NO_CERTIFICATE_RETURNED                    178
201 #define SSL_R_NO_CERTIFICATE_SET                         179
202 #define SSL_R_NO_CERTIFICATE_SPECIFIED                   180
203 #define SSL_R_NO_CIPHERS_AVAILABLE                       181
204 #define SSL_R_NO_CIPHERS_PASSED                          182
205 #define SSL_R_NO_CIPHERS_SPECIFIED                       183
206 #define SSL_R_NO_CIPHER_LIST                             184
207 #define SSL_R_NO_CIPHER_MATCH                            185
208 #define SSL_R_NO_CLIENT_CERT_RECEIVED                    186
209 #define SSL_R_NO_COMPRESSION_SPECIFIED                   187
210 #define SSL_R_NO_METHOD_SPECIFIED                        188
211 #define SSL_R_NO_PRIVATEKEY                              189
212 #define SSL_R_NO_PRIVATE_KEY_ASSIGNED                    190
213 #define SSL_R_NO_PROTOCOLS_AVAILABLE                     191
214 #define SSL_R_NO_PUBLICKEY                               192
215 #define SSL_R_NO_SHARED_CIPHER                           193
216 #define SSL_R_NO_VERIFY_CALLBACK                         194
217 #define SSL_R_NULL_SSL_CTX                               195
218 #define SSL_R_NULL_SSL_METHOD_PASSED                     196
219 #define SSL_R_OLD_SESSION_CIPHER_NOT_RETURNED            197
220 #define SSL_R_PACKET_LENGTH_TOO_LONG                     198
221 #define SSL_R_PATH_TOO_LONG                              270
222 #define SSL_R_PEER_DID_NOT_RETURN_A_CERTIFICATE          199
223 #define SSL_R_PEER_ERROR                                 200
224 #define SSL_R_PEER_ERROR_CERTIFICATE                     201
225 #define SSL_R_PEER_ERROR_NO_CERTIFICATE                  202
226 #define SSL_R_PEER_ERROR_NO_CIPHER                       203
227 #define SSL_R_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE    204
228 #define SSL_R_PRE_MAC_LENGTH_TOO_LONG                    205
229 #define SSL_R_PROBLEMS_MAPPING_CIPHER_FUNCTIONS          206
230 #define SSL_R_PROTOCOL_IS_SHUTDOWN                       207
231 #define SSL_R_PUBLIC_KEY_ENCRYPT_ERROR                   208
232 #define SSL_R_PUBLIC_KEY_IS_NOT_RSA                      209
233 #define SSL_R_PUBLIC_KEY_NOT_RSA                         210
234 #define SSL_R_READ_BIO_NOT_SET                           211
235 #define SSL_R_READ_WRONG_PACKET_TYPE                     212
236 #define SSL_R_RECORD_LENGTH_MISMATCH                     213
237 #define SSL_R_RECORD_TOO_LARGE                           214
238 #define SSL_R_REQUIRED_CIPHER_MISSING                    215
239 #define SSL_R_REUSE_CERT_LENGTH_NOT_ZERO                 216
240 #define SSL_R_REUSE_CERT_TYPE_NOT_ZERO                   217
241 #define SSL_R_REUSE_CIPHER_LIST_NOT_ZERO                 218
242 #define SSL_R_SHORT_READ                                 219
243 #define SSL_R_SIGNATURE_FOR_NON_SIGNING_CERTIFICATE      220
244 #define SSL_R_SSL23_DOING_SESSION_ID_REUSE               221
245 #define SSL_R_SSL3_SESSION_ID_TOO_SHORT                  222
246 #define SSL_R_SSLV3_ALERT_BAD_CERTIFICATE                1042
247 #define SSL_R_SSLV3_ALERT_BAD_RECORD_MAC                 1020
248 #define SSL_R_SSLV3_ALERT_CERTIFICATE_EXPIRED            1045
249 #define SSL_R_SSLV3_ALERT_CERTIFICATE_REVOKED            1044
250 #define SSL_R_SSLV3_ALERT_CERTIFICATE_UNKNOWN            1046
251 #define SSL_R_SSLV3_ALERT_DECOMPRESSION_FAILURE          1030
252 #define SSL_R_SSLV3_ALERT_HANDSHAKE_FAILURE              1040
253 #define SSL_R_SSLV3_ALERT_ILLEGAL_PARAMETER              1047
254 #define SSL_R_SSLV3_ALERT_NO_CERTIFICATE                 1041
255 #define SSL_R_SSLV3_ALERT_PEER_ERROR_CERTIFICATE         223
256 #define SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CERTIFICATE      224
257 #define SSL_R_SSLV3_ALERT_PEER_ERROR_NO_CIPHER           225
258 #define SSL_R_SSLV3_ALERT_PEER_ERROR_UNSUPPORTED_CERTIFICATE_TYPE 226
259 #define SSL_R_SSLV3_ALERT_UNEXPECTED_MESSAGE             1010
260 #define SSL_R_SSLV3_ALERT_UNKNOWN_REMOTE_ERROR_TYPE      227
261 #define SSL_R_SSLV3_ALERT_UNSUPPORTED_CERTIFICATE        1043
262 #define SSL_R_SSL_CTX_HAS_NO_DEFAULT_SSL_VERSION         228
263 #define SSL_R_SSL_HANDSHAKE_FAILURE                      229
264 #define SSL_R_SSL_LIBRARY_HAS_NO_CIPHERS                 230
265 #define SSL_R_SSL_SESSION_ID_IS_DIFFERENT                231
266 #define SSL_R_TLSV1_ALERT_ACCESS_DENIED                  1049
267 #define SSL_R_TLSV1_ALERT_DECODE_ERROR                   1050
268 #define SSL_R_TLSV1_ALERT_DECRYPTION_FAILED              1021
269 #define SSL_R_TLSV1_ALERT_DECRYPT_ERROR                  1051
270 #define SSL_R_TLSV1_ALERT_EXPORT_RESTRICION              1060
271 #define SSL_R_TLSV1_ALERT_INSUFFICIENT_SECURITY          1071
272 #define SSL_R_TLSV1_ALERT_INTERNAL_ERROR                 1080
273 #define SSL_R_TLSV1_ALERT_NO_RENEGOTIATION               1100
274 #define SSL_R_TLSV1_ALERT_PROTOCOL_VERSION               1070
275 #define SSL_R_TLSV1_ALERT_RECORD_OVERFLOW                1022
276 #define SSL_R_TLSV1_ALERT_UNKNOWN_CA                     1048
277 #define SSL_R_TLSV1_ALERT_USER_CANCLED                   1090
278 #define SSL_R_TLS_CLIENT_CERT_REQ_WITH_ANON_CIPHER       232
279 #define SSL_R_TLS_PEER_DID_NOT_RESPOND_WITH_CERTIFICATE_LIST 233
280 #define SSL_R_TLS_RSA_ENCRYPTED_VALUE_LENGTH_IS_WRONG    234
281 #define SSL_R_TRIED_TO_USE_UNSUPPORTED_CIPHER            235
282 #define SSL_R_UNABLE_TO_DECODE_DH_CERTS                  236
283 #define SSL_R_UNABLE_TO_EXTRACT_PUBLIC_KEY               237
284 #define SSL_R_UNABLE_TO_FIND_DH_PARAMETERS               238
285 #define SSL_R_UNABLE_TO_FIND_PUBLIC_KEY_PARAMETERS       239
286 #define SSL_R_UNABLE_TO_FIND_SSL_METHOD                  240
287 #define SSL_R_UNABLE_TO_LOAD_SSL2_MD5_ROUTINES           241
288 #define SSL_R_UNABLE_TO_LOAD_SSL3_MD5_ROUTINES           242
289 #define SSL_R_UNABLE_TO_LOAD_SSL3_SHA1_ROUTINES          243
290 #define SSL_R_UNEXPECTED_MESSAGE                         244
291 #define SSL_R_UNEXPECTED_RECORD                          245
292 #define SSL_R_UNKNOWN_ALERT_TYPE                         246
293 #define SSL_R_UNKNOWN_CERTIFICATE_TYPE                   247
294 #define SSL_R_UNKNOWN_CIPHER_RETURNED                    248
295 #define SSL_R_UNKNOWN_CIPHER_TYPE                        249
296 #define SSL_R_UNKNOWN_KEY_EXCHANGE_TYPE                  250
297 #define SSL_R_UNKNOWN_PKEY_TYPE                          251
298 #define SSL_R_UNKNOWN_PROTOCOL                           252
299 #define SSL_R_UNKNOWN_REMOTE_ERROR_TYPE                  253
300 #define SSL_R_UNKNOWN_SSL_VERSION                        254
301 #define SSL_R_UNKNOWN_STATE                              255
302 #define SSL_R_UNSUPPORTED_CIPHER                         256
303 #define SSL_R_UNSUPPORTED_COMPRESSION_ALGORITHM          257
304 #define SSL_R_UNSUPPORTED_PROTOCOL                       258
305 #define SSL_R_UNSUPPORTED_SSL_VERSION                    259
306 #define SSL_R_WRITE_BIO_NOT_SET                          260
307 #define SSL_R_WRONG_CIPHER_RETURNED                      261
308 #define SSL_R_WRONG_MESSAGE_TYPE                         262
309 #define SSL_R_WRONG_NUMBER_OF_KEY_BITS                   263
310 #define SSL_R_WRONG_SIGNATURE_LENGTH                     264
311 #define SSL_R_WRONG_SIGNATURE_SIZE                       265
312 #define SSL_R_WRONG_SSL_VERSION                          266
313 #define SSL_R_WRONG_VERSION_NUMBER                       267
314 #define SSL_R_X509_LIB                                   268
315 #define SSL_R_X509_VERIFICATION_SETUP_PROBLEMS           269