qemu/hw/tpm
Stefan Berger 98979cdca4 tpm: Use EMSGSIZE instead of EBADMSG to compile on OpenBSD
EBADMSG was only added to OpenBSD very recently. To make QEMU compilable
on older OpenBSD versions use EMSGSIZE instead when a mismatch between
number of received bytes and message size indicated in the header was
found.

Return -EMSGSIZE and convert all other errnos in the same functions to
return the negative errno.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2017-10-13 07:34:32 -04:00
..
Makefile.objs tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00
tpm_int.h tpm: Probe for connected TPM 1.2 or TPM 2 2015-05-31 20:29:02 +02:00
tpm_passthrough.c hw/tpm/tpm_passthrough: Simplify if-statements a little bit 2016-10-28 18:17:23 +03:00
tpm_tis.c clean-up: removed duplicate #includes 2016-10-28 18:17:24 +03:00
tpm_tis.h Extend TPM TIS interface to support TPM 2 2015-05-31 20:29:02 +02:00
tpm_util.c tpm: Use EMSGSIZE instead of EBADMSG to compile on OpenBSD 2017-10-13 07:34:32 -04:00
tpm_util.h Clean up header guards that don't match their file name 2016-07-12 16:19:16 +02:00