qemu/tests
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
..
avocado Maintainer updates for testing, gdbstub, semihosting, plugins 2024-07-23 12:15:11 +10:00
bench tests/bench: Add bufferiszero-bench 2024-05-03 08:03:35 -07:00
data tests/acpi: Add expected ACPI AML files for RISC-V 2024-07-22 20:15:42 -04:00
decode tests/: spelling fixes 2023-09-08 13:08:52 +03:00
docker python: enable testing for 3.13 2024-07-12 16:36:20 -04:00
fp tests/fp: Bump fp-test-mulAdd test timeout to 3 minutes 2024-01-12 13:23:48 +00:00
guest-debug tests: Gently exit from GDB when tests complete 2024-05-17 16:49:04 +02:00
image-fuzzer
include
keys
lcitool testing: bump to latest libvirt-ci 2024-07-22 09:06:17 +01:00
migration tests/qtest/migration-test: Use custom asm bios for ppc64 2024-06-14 14:01:23 -03:00
multiboot
perf/block/qcow2
plugin tests/plugins: use qemu_plugin_outs for inline stats 2024-07-22 09:38:01 +01:00
qapi-schema qapi: remove "Example" doc section 2024-07-17 10:20:54 +02:00
qemu-iotests iotests: Change imports for Python 3.13 2024-07-12 16:36:20 -04:00
qtest crypto: Restrict pkix_asn1_tab[] to crypto-tls-x509-helpers.c 2024-07-24 10:39:10 +01:00
rocker
tcg tests/tcg/aarch64: Fix test-mte.py 2024-07-22 09:38:17 +01:00
tsan block: remove AioContext locking 2023-12-21 22:49:27 +01:00
uefi-test-tools tests/data/uefi-boot-images: Add RISC-V ISO image 2024-07-03 18:14:06 -04:00
unit crypto: propagate errors from TLS session I/O callbacks 2024-07-24 10:39:10 +01:00
vm testing: bump to latest libvirt-ci 2024-07-22 09:06:17 +01:00
vmstate-static-checker-data
dbus-vmstate-daemon.sh
Makefile.include tests/avocado: Allow overwriting AVOCADO_SHOW env variable 2024-07-22 13:54:10 +02:00
meson.build tests: only build plugins if TCG is enabled 2024-04-18 11:17:27 +02:00
test-qht-par.c
vhost-user-bridge.c error handling: Use RETRY_ON_EINTR() macro where applicable 2023-01-09 13:50:47 +01:00