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: NJán Tomko <jtomko@redhat.com> Suggested-by: NStefan Berger <stefanb@linux.vnet.ibm.com>
Showing
想要评论请 注册 或 登录