Re: [PATCH 5/5] crypto: propagate errors from TLS session I/O callbacks

2024-07-22 Thread Philippe Mathieu-Daudé
On 22/7/24 15:16, Daniel P. Berrangé wrote: 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

[PATCH 5/5] crypto: propagate errors from TLS session I/O callbacks

2024-07-22 Thread Daniel P . Berrangé
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 cal