crypto: push error reporting into TLS session I/O APIs
authorDaniel P. Berrangé <berrange@redhat.com>
Fri, 15 Mar 2024 14:07:58 +0000 (14:07 +0000)
committerDaniel P. Berrangé <berrange@redhat.com>
Wed, 24 Jul 2024 09:39:10 +0000 (10:39 +0100)
commit57941c9c86357a6a642f9ee3279d881df4043b6d
tree5275e399ab1b5ac68197d3c30993882cea671e52
parent305233349b471840b00068579d0ab0af50395852
crypto: push error reporting into TLS session I/O APIs

The current TLS session I/O APIs just return a synthetic errno
value on error, which has been translated from a gnutls error
value. This looses a large amount of valuable information that
distinguishes different scenarios.

Pushing population of the "Error *errp" object into the TLS
session I/O APIs gives more detailed error information.

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/tlssession.c
include/crypto/tlssession.h
io/channel-tls.c