diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2016-07-05 11:45:42 +0100 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-07-21 10:46:27 +0100 |
commit | 2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5 (patch) | |
tree | 4661a97d6569cbebc436d81fe521e4c6da7871c9 /crypto/tlscredsx509.c | |
parent | f3c8355c7aaa89a5c5676756d4ba6139ea26b446 (diff) | |
download | qemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.tar.gz qemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.tar.bz2 qemu-2165477c0f65d20fdfbdb2ddcd4e0e7fe8f61df5.zip |
crypto: use glib as fallback for hash algorithm
GLib >= 2.16 provides GChecksum API which is good enough
for md5, sha1, sha256 and sha512. Use this as a final
fallback if neither nettle or gcrypt are available. This
lets us remove the stub hash impl, and so callers can
be sure those 4 algs are always available at compile
time. They may still be disabled at runtime, so a check
for qcrypto_hash_supports() is still best practice to
report good error messages.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto/tlscredsx509.c')
0 files changed, 0 insertions, 0 deletions