]> git.proxmox.com Git - mirror_qemu.git/blobdiff - crypto/pbkdf-gcrypt.c
nbd/client: Reject inaccessible tail of inconsistent server
[mirror_qemu.git] / crypto / pbkdf-gcrypt.c
index 40289858bf348007b59c2b1e96620280e8718d0d..54ca0d9c75bcc828043d1b021787b3ef14dfd911 100644 (file)
@@ -68,7 +68,7 @@ int qcrypto_pbkdf2(QCryptoHashAlgorithm hash,
         hash_map[hash] == GCRY_MD_NONE) {
         error_setg_errno(errp, ENOSYS,
                          "PBKDF does not support hash algorithm %s",
-                         QCryptoHashAlgorithm_lookup[hash]);
+                         QCryptoHashAlgorithm_str(hash));
         return -1;
     }