summaryrefslogtreecommitdiffstats
path: root/crypto/pbkdf-nettle.c
diff options
context:
space:
mode:
authorMarkus Armbruster2017-08-24 10:46:08 +0200
committerMarkus Armbruster2017-09-04 13:09:13 +0200
commit977c736f80c232de7c6476d793ed575359c049d8 (patch)
tree986bf327e75929660aa367008574343e59818ee4 /crypto/pbkdf-nettle.c
parentqapi: Generate FOO_str() macro for QAPI enum FOO (diff)
downloadqemu-977c736f80c232de7c6476d793ed575359c049d8.tar.gz
qemu-977c736f80c232de7c6476d793ed575359c049d8.tar.xz
qemu-977c736f80c232de7c6476d793ed575359c049d8.zip
qapi: Mechanically convert FOO_lookup[...] to FOO_str(...)
Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-Id: <1503564371-26090-14-git-send-email-armbru@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Diffstat (limited to 'crypto/pbkdf-nettle.c')
-rw-r--r--crypto/pbkdf-nettle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/pbkdf-nettle.c b/crypto/pbkdf-nettle.c
index 6fb2671656..212b3e816b 100644
--- a/crypto/pbkdf-nettle.c
+++ b/crypto/pbkdf-nettle.c
@@ -110,7 +110,7 @@ int qcrypto_pbkdf2(QCryptoHashAlgorithm hash,
default:
error_setg_errno(errp, ENOSYS,
"PBKDF does not support hash algorithm %s",
- QCryptoHashAlgorithm_lookup[hash]);
+ QCryptoHashAlgorithm_str(hash));
return -1;
}
return 0;