]> xenbits.xensource.com Git - libvirt.git/commit
virCryptoHashBuf: return the length of the hash in bytes
authorJán Tomko <jtomko@redhat.com>
Tue, 15 May 2018 07:58:50 +0000 (09:58 +0200)
committerJán Tomko <jtomko@redhat.com>
Wed, 16 May 2018 08:40:40 +0000 (10:40 +0200)
commitc25fbbec686612b08f5122af3941e7b663ee53a6
tree8e3d4efecb9524b8e48912cb890794ab2eeb8df0
parented11d1662d5f93dbb2ffae12aa1e9219a4e6f34d
virCryptoHashBuf: return the length of the hash in bytes

virCryptoHashString also needs to know the size of the returned hash.
Return it if the hash conversion succeeded so the caller does not need
to access the hashinfo array.

This should make virCryptoHashString build without gnutls.
Also fixes the missing return value for the virCryptoHashBuf stub.

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Suggested-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
src/util/vircrypto.c
src/util/vircrypto.h