Daniel P. Berrangé
97f7bf113e
crypto: propagate errors from TLS session I/O callbacks
...
GNUTLS doesn't know how to perform I/O on anything other than plain
FDs, so the TLS session provides it with some I/O callbacks. The
GNUTLS API design requires these callbacks to return a unix errno
value, which means we're currently loosing the useful QEMU "Error"
object.
This changes the I/O callbacks in QEMU to stash the "Error" object
in the QCryptoTLSSession class, and fetch it when seeing an I/O
error returned from GNUTLS, thus preserving useful error messages.
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-07-24 10:39:10 +01:00
..
2023-09-11 11:45:54 +10:00
2023-09-08 13:08:52 +03:00
2020-09-10 11:02:23 +01:00
2019-08-22 10:56:57 +01:00
2022-05-26 11:41:53 +01:00
2022-05-26 11:41:54 +01:00
2022-11-02 06:56:32 -04:00
2022-05-26 11:41:47 +01:00
2023-02-08 07:16:23 +01:00
2024-07-23 20:30:36 +02:00
2019-07-19 14:21:25 +01:00
2024-06-10 11:05:43 +02:00
2019-07-19 14:21:25 +01:00
2024-06-10 11:05:43 +02:00
2024-06-10 11:05:43 +02:00
2022-04-06 14:31:55 +02:00
2021-07-14 14:15:52 +01:00
2024-03-19 20:17:12 +00:00
2023-09-29 10:07:16 +02:00
2024-02-09 12:47:55 +00:00
2024-02-09 12:47:55 +00:00
2020-09-10 11:02:23 +01:00
2023-09-15 13:57:00 +00:00
2023-09-08 13:08:52 +03:00
2023-09-08 13:08:52 +03:00
2022-04-06 14:31:55 +02:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2021-07-14 14:15:52 +01:00
2021-06-02 07:04:55 +02:00
2019-07-19 14:21:25 +01:00
2017-07-19 10:11:05 +01:00
2017-09-04 13:09:13 +02:00
2019-08-22 10:46:34 +01:00
2021-07-14 14:15:52 +01:00
2021-06-02 07:04:55 +02:00
2018-02-09 13:50:17 +01:00
2023-08-31 19:47:43 +02:00
2024-07-24 10:39:10 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2022-05-11 16:50:01 +02:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2023-10-03 10:29:39 +02:00
2019-07-19 14:21:25 +01:00
2021-07-14 14:15:52 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2022-10-26 13:32:08 +01:00
2019-07-19 14:21:25 +01:00
2019-07-19 14:21:25 +01:00
2020-06-15 11:33:50 +01:00
2019-07-19 14:21:25 +01:00
2023-11-07 14:54:56 +00:00
2022-05-26 11:41:51 +01:00
2022-11-02 06:56:32 -04:00
2022-11-02 06:56:32 -04:00
2022-05-14 12:33:44 +02:00
2021-01-29 17:07:53 +00:00
2021-01-29 17:07:53 +00:00
2023-09-11 11:45:55 +10:00
2023-09-29 10:07:20 +02:00
2021-06-29 18:29:43 +01:00
2022-05-14 12:33:44 +02:00
2021-06-29 18:30:24 +01:00
2022-10-27 11:55:41 +01:00
2022-05-14 12:33:44 +02:00
2024-07-24 10:39:10 +01:00
2021-06-02 06:51:09 +02:00
2020-08-21 06:18:24 -04:00
2019-07-19 14:21:25 +01:00