@@ -32,6 +32,30 @@ static struct aws_error_info s_errors[] = {
32
32
AWS_DEFINE_ERROR_INFO_IO (
33
33
AWS_IO_EVENT_LOOP_SHUTDOWN ,
34
34
"Event loop has shutdown and a resource was still using it, the resource has been removed from the loop." ),
35
+ AWS_DEFINE_ERROR_INFO_IO (
36
+ AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE ,
37
+ "TLS (SSL) negotiation failed" ),
38
+ AWS_DEFINE_ERROR_INFO_IO (
39
+ AWS_IO_TLS_ERROR_NOT_NEGOTIATED ,
40
+ "Attempt to read/write, but TLS (SSL) hasn't been negotiated" ),
41
+ AWS_DEFINE_ERROR_INFO_IO (
42
+ AWS_IO_TLS_ERROR_WRITE_FAILURE ,
43
+ "Failed to write to TLS handler" ),
44
+ AWS_DEFINE_ERROR_INFO_IO (
45
+ AWS_IO_TLS_ERROR_ALERT_RECEIVED ,
46
+ "Fatal TLS Alert was received" ),
47
+ AWS_DEFINE_ERROR_INFO_IO (
48
+ AWS_IO_TLS_CTX_ERROR ,
49
+ "Failed to create tls context" ),
50
+ AWS_DEFINE_ERROR_INFO_IO (
51
+ AWS_IO_TLS_VERSION_UNSUPPORTED ,
52
+ "A TLS version was specified that is currently not supported. Consider using AWS_IO_TLS_VER_SYS_DEFAULTS, "
53
+ " and when this lib or the operating system is updated, it will automatically be used." ),
54
+ AWS_DEFINE_ERROR_INFO_IO (
55
+ AWS_IO_TLS_CIPHER_PREF_UNSUPPORTED ,
56
+ "A TLS Cipher Preference was specified that is currently not supported by the current platform. Consider "
57
+ " using AWS_IO_TLS_CIPHER_SYSTEM_DEFAULT, and when this lib or the operating system is updated, it will "
58
+ "automatically be used." ),
35
59
AWS_DEFINE_ERROR_INFO_IO (
36
60
AWS_IO_MISSING_ALPN_MESSAGE ,
37
61
"An ALPN message was expected but not received" ),
@@ -98,9 +122,6 @@ static struct aws_error_info s_errors[] = {
98
122
AWS_DEFINE_ERROR_INFO_IO (
99
123
AWS_IO_SOCKET_CONNECT_ABORTED ,
100
124
"Incoming connection was aborted." ),
101
- AWS_DEFINE_ERROR_INFO_IO (
102
- AWS_IO_SOCKET_MISSING_EVENT_LOOP ,
103
- "Socket is missing its event loop." ),
104
125
AWS_DEFINE_ERROR_INFO_IO (
105
126
AWS_IO_DNS_QUERY_FAILED ,
106
127
"A query to dns failed to resolve." ),
@@ -128,93 +149,24 @@ static struct aws_error_info s_errors[] = {
128
149
AWS_DEFINE_ERROR_INFO_IO (
129
150
AWS_IO_SHARED_LIBRARY_FIND_SYMBOL_FAILURE ,
130
151
"System call error during attempt to find shared library symbol" ),
131
- AWS_DEFINE_ERROR_INFO_IO (
132
- AWS_IO_MAX_RETRIES_EXCEEDED ,
133
- "Retry cannot be attempted because the maximum number of retries has been exceeded." ),
134
- AWS_DEFINE_ERROR_INFO_IO (
135
- AWS_IO_RETRY_PERMISSION_DENIED ,
136
- "Retry cannot be attempted because the retry strategy has prevented the operation." ),
137
- AWS_DEFINE_ERROR_INFO_IO (
138
- AWS_IO_TLS_ERROR_NEGOTIATION_FAILURE ,
139
- "TLS (SSL) negotiation failed" ),
140
- AWS_DEFINE_ERROR_INFO_IO (
141
- AWS_IO_TLS_ERROR_NOT_NEGOTIATED ,
142
- "Attempt to read/write, but TLS (SSL) hasn't been negotiated" ),
143
- AWS_DEFINE_ERROR_INFO_IO (
144
- AWS_IO_TLS_ERROR_WRITE_FAILURE ,
145
- "Failed to write to TLS handler" ),
146
- AWS_DEFINE_ERROR_INFO_IO (
147
- AWS_IO_TLS_ERROR_ALERT_RECEIVED ,
148
- "Fatal TLS Alert was received" ),
149
- AWS_DEFINE_ERROR_INFO_IO (
150
- AWS_IO_TLS_CTX_ERROR ,
151
- "Failed to create tls context" ),
152
- AWS_DEFINE_ERROR_INFO_IO (
153
- AWS_IO_TLS_VERSION_UNSUPPORTED ,
154
- "A TLS version was specified that is currently not supported. Consider using AWS_IO_TLS_VER_SYS_DEFAULTS, "
155
- " and when this lib or the operating system is updated, it will automatically be used." ),
156
- AWS_DEFINE_ERROR_INFO_IO (
157
- AWS_IO_TLS_CIPHER_PREF_UNSUPPORTED ,
158
- "A TLS Cipher Preference was specified that is currently not supported by the current platform. Consider "
159
- " using AWS_IO_TLS_CIPHER_SYSTEM_DEFAULT, and when this lib or the operating system is updated, it will "
160
- "automatically be used." ),
161
152
AWS_DEFINE_ERROR_INFO_IO (
162
153
AWS_IO_TLS_NEGOTIATION_TIMEOUT ,
163
154
"Channel shutdown due to tls negotiation timeout" ),
164
155
AWS_DEFINE_ERROR_INFO_IO (
165
156
AWS_IO_TLS_ALERT_NOT_GRACEFUL ,
166
157
"Channel shutdown due to tls alert. The alert was not for a graceful shutdown." ),
158
+ AWS_DEFINE_ERROR_INFO_IO (
159
+ AWS_IO_MAX_RETRIES_EXCEEDED ,
160
+ "Retry cannot be attempted because the maximum number of retries has been exceeded." ),
161
+ AWS_DEFINE_ERROR_INFO_IO (
162
+ AWS_IO_RETRY_PERMISSION_DENIED ,
163
+ "Retry cannot be attempted because the retry strategy has prevented the operation." ),
167
164
AWS_DEFINE_ERROR_INFO_IO (
168
165
AWS_IO_TLS_DIGEST_ALGORITHM_UNSUPPORTED ,
169
166
"TLS digest was created with an unsupported algorithm" ),
170
167
AWS_DEFINE_ERROR_INFO_IO (
171
168
AWS_IO_TLS_SIGNATURE_ALGORITHM_UNSUPPORTED ,
172
169
"TLS signature algorithm is currently unsupported." ),
173
- AWS_DEFINE_ERROR_INFO_IO (
174
- AWS_IO_TLS_ERROR_READ_FAILURE ,
175
- "Failure during TLS read." ),
176
- AWS_DEFINE_ERROR_INFO_IO (
177
- AWS_IO_TLS_UNKNOWN_ROOT_CERTIFICATE ,
178
- "Channel shutdown due to tls unknown root certificate." ),
179
- AWS_DEFINE_ERROR_INFO_IO (
180
- AWS_IO_TLS_NO_ROOT_CERTIFICATE_FOUND ,
181
- "Channel shutdown due to tls no root certificate found." ),
182
- AWS_DEFINE_ERROR_INFO_IO (
183
- AWS_IO_TLS_CERTIFICATE_EXPIRED ,
184
- "Channel shutdown due to tls certificate expired." ),
185
- AWS_DEFINE_ERROR_INFO_IO (
186
- AWS_IO_TLS_CERTIFICATE_NOT_YET_VALID ,
187
- "Channel shutdown due to tls certificate not yet valid." ),
188
- AWS_DEFINE_ERROR_INFO_IO (
189
- AWS_IO_TLS_BAD_CERTIFICATE ,
190
- "Channel shutdown due to tls certificate is malformed or not correctly formatted." ),
191
- AWS_DEFINE_ERROR_INFO_IO (
192
- AWS_IO_TLS_PEER_CERTIFICATE_EXPIRED ,
193
- "Channel shutdown due to peer tls certificate is malformed or not correctly formatted." ),
194
- AWS_DEFINE_ERROR_INFO_IO (
195
- AWS_IO_TLS_BAD_PEER_CERTIFICATE ,
196
- "Channel shutdown due to peer tls certificate is malformed or not correctly formatted." ),
197
- AWS_DEFINE_ERROR_INFO_IO (
198
- AWS_IO_TLS_PEER_CERTIFICATE_REVOKED ,
199
- "Channel shutdown due to peer tls certificate has been revoked." ),
200
- AWS_DEFINE_ERROR_INFO_IO (
201
- AWS_IO_TLS_PEER_CERTIFICATE_UNKNOWN ,
202
- "Channel shutdown due to peer tls certificate is unknown." ),
203
- AWS_DEFINE_ERROR_INFO_IO (
204
- AWS_IO_TLS_INTERNAL_ERROR ,
205
- "Channel shutdown due to internal SSL error." ),
206
- AWS_DEFINE_ERROR_INFO_IO (
207
- AWS_IO_TLS_CLOSED_GRACEFUL ,
208
- "Channel shutdown due to connection closed gracefully." ),
209
- AWS_DEFINE_ERROR_INFO_IO (
210
- AWS_IO_TLS_CLOSED_ABORT ,
211
- "Channel shutdown due to connection closed due to an error." ),
212
- AWS_DEFINE_ERROR_INFO_IO (
213
- AWS_IO_TLS_INVALID_CERTIFICATE_CHAIN ,
214
- "Channel shutdown due to invalid certificate chain." ),
215
- AWS_DEFINE_ERROR_INFO_IO (
216
- AWS_IO_TLS_HOST_NAME_MISSMATCH ,
217
- "Channel shutdown due to certificate's host name does not match the endpoint host name." ),
218
170
219
171
AWS_DEFINE_ERROR_INFO_IO (
220
172
AWS_ERROR_PKCS11_VERSION_UNSUPPORTED ,
@@ -350,7 +302,55 @@ static struct aws_error_info s_errors[] = {
350
302
AWS_DEFINE_ERROR_INFO_IO (
351
303
AWS_IO_STREAM_GET_LENGTH_UNSUPPORTED ,
352
304
"Get length is not supported in the underlying I/O source." ),
305
+ AWS_DEFINE_ERROR_INFO_IO (
306
+ AWS_IO_TLS_ERROR_READ_FAILURE ,
307
+ "Failure during TLS read." ),
353
308
AWS_DEFINE_ERROR_INFO_IO (AWS_ERROR_PEM_MALFORMED , "Malformed PEM object encountered." ),
309
+ AWS_DEFINE_ERROR_INFO_IO (
310
+ AWS_IO_SOCKET_MISSING_EVENT_LOOP ,
311
+ "Socket is missing its event loop." ),
312
+ AWS_DEFINE_ERROR_INFO_IO (
313
+ AWS_IO_TLS_UNKNOWN_ROOT_CERTIFICATE ,
314
+ "Channel shutdown due to tls unknown root certificate." ),
315
+ AWS_DEFINE_ERROR_INFO_IO (
316
+ AWS_IO_TLS_NO_ROOT_CERTIFICATE_FOUND ,
317
+ "Channel shutdown due to tls no root certificate found." ),
318
+ AWS_DEFINE_ERROR_INFO_IO (
319
+ AWS_IO_TLS_CERTIFICATE_EXPIRED ,
320
+ "Channel shutdown due to tls certificate expired." ),
321
+ AWS_DEFINE_ERROR_INFO_IO (
322
+ AWS_IO_TLS_CERTIFICATE_NOT_YET_VALID ,
323
+ "Channel shutdown due to tls certificate not yet valid." ),
324
+ AWS_DEFINE_ERROR_INFO_IO (
325
+ AWS_IO_TLS_BAD_CERTIFICATE ,
326
+ "Channel shutdown due to tls certificate is malformed or not correctly formatted." ),
327
+ AWS_DEFINE_ERROR_INFO_IO (
328
+ AWS_IO_TLS_PEER_CERTIFICATE_EXPIRED ,
329
+ "Channel shutdown due to peer tls certificate is malformed or not correctly formatted." ),
330
+ AWS_DEFINE_ERROR_INFO_IO (
331
+ AWS_IO_TLS_BAD_PEER_CERTIFICATE ,
332
+ "Channel shutdown due to peer tls certificate is malformed or not correctly formatted." ),
333
+ AWS_DEFINE_ERROR_INFO_IO (
334
+ AWS_IO_TLS_PEER_CERTIFICATE_REVOKED ,
335
+ "Channel shutdown due to peer tls certificate has been revoked." ),
336
+ AWS_DEFINE_ERROR_INFO_IO (
337
+ AWS_IO_TLS_PEER_CERTIFICATE_UNKNOWN ,
338
+ "Channel shutdown due to peer tls certificate is unknown." ),
339
+ AWS_DEFINE_ERROR_INFO_IO (
340
+ AWS_IO_TLS_INTERNAL_ERROR ,
341
+ "Channel shutdown due to internal SSL error." ),
342
+ AWS_DEFINE_ERROR_INFO_IO (
343
+ AWS_IO_TLS_CLOSED_GRACEFUL ,
344
+ "Channel shutdown due to connection closed gracefully." ),
345
+ AWS_DEFINE_ERROR_INFO_IO (
346
+ AWS_IO_TLS_CLOSED_ABORT ,
347
+ "Channel shutdown due to connection closed due to an error." ),
348
+ AWS_DEFINE_ERROR_INFO_IO (
349
+ AWS_IO_TLS_INVALID_CERTIFICATE_CHAIN ,
350
+ "Channel shutdown due to invalid certificate chain." ),
351
+ AWS_DEFINE_ERROR_INFO_IO (
352
+ AWS_IO_TLS_HOST_NAME_MISMATCH ,
353
+ "Channel shutdown due to certificate's host name does not match the endpoint host name." ),
354
354
};
355
355
/* clang-format on */
356
356
0 commit comments