]> git.proxmox.com Git - mirror_qemu.git/commit
crypto: report enum strings instead of values in errors
authorDaniel P. Berrange <berrange@redhat.com>
Mon, 5 Sep 2016 17:02:05 +0000 (18:02 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Mon, 12 Sep 2016 11:00:52 +0000 (12:00 +0100)
commit90d6f60d0727df084b62674bf2310ac74467a5a4
tree1c567d6887ca2027f804860f49fcfc81486f17b0
parentd9269b274a9a08c8cbae14deb514d4e30b4095cf
crypto: report enum strings instead of values in errors

Several error messages print out the raw enum value, which
is less than helpful to users, as these values are not
documented, nor stable across QEMU releases. Switch to use
the enum string instead.

The nettle impl also had two typos where it mistakenly
said "algorithm" instead of "mode", and actually reported
the algorithm value too.

Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
crypto/block.c
crypto/cipher-builtin.c
crypto/cipher-gcrypt.c
crypto/cipher-nettle.c