qemu-e2k/crypto
Richard W.M. Jones d6cca8e111 crypto: Remove use of GCRYPT_VERSION macro.
According to the gcrypt documentation it's intended that
gcry_check_version() is called with the minimum version of gcrypt
needed by the program, not the version from the <gcrypt.h> header file
that happened to be installed when qemu was compiled.  Indeed the
gcrypt.h header says that you shouldn't use the GCRYPT_VERSION macro.

This causes the following failure:

  qemu-img: Unable to initialize gcrypt

if a slightly older version of libgcrypt is installed with a newer
qemu, even though the slightly older version works fine.  This can
happen with RPM packaging which uses symbol versioning to determine
automatically which libgcrypt is required by qemu, which caused the
following bug in RHEL 8:

  https://bugzilla.redhat.com/show_bug.cgi?id=1840485

qemu actually requires libgcrypt >= 1.5.0, so we might put the string
"1.5.0" here.  However since 1.5.0 was released in 2011, it hardly
seems we need to check that.  So I replaced GCRYPT_VERSION with NULL.
Perhaps in future if we move to requiring a newer version of gcrypt we
could put a literal string here.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-06-15 11:33:51 +01:00
..
aes.c
afalg.c
afalgpriv.h
afsplit.c
block-luks.c
block-luks.h
block-qcow.c
block-qcow.h
block.c luks: extract qcrypto_block_calculate_payload_offset() 2020-03-11 12:42:29 +01:00
blockpriv.h
cipher-afalg.c
cipher-builtin.c crypto: Redundant type conversion for AES_KEY pointer 2020-05-07 12:48:41 +01:00
cipher-gcrypt.c crypto: add support for gcrypt's native XTS impl 2019-10-28 16:20:28 +01:00
cipher-nettle.c crypto: add support for nettle's native XTS impl 2019-10-28 16:45:07 +01:00
cipher.c
cipherpriv.h
desrfb.c
hash-afalg.c
hash-gcrypt.c
hash-glib.c
hash-nettle.c
hash.c
hashpriv.h
hmac-gcrypt.c
hmac-glib.c
hmac-nettle.c
hmac.c
hmacpriv.h
init.c crypto: Remove use of GCRYPT_VERSION macro. 2020-06-15 11:33:51 +01:00
ivgen-essiv.c
ivgen-essiv.h
ivgen-plain64.c
ivgen-plain64.h
ivgen-plain.c
ivgen-plain.h
ivgen.c
ivgenpriv.h
Makefile.objs crypto/linux_keyring: add 'secret_keyring' secret object. 2020-06-15 11:33:51 +01:00
pbkdf-gcrypt.c
pbkdf-nettle.c
pbkdf-stub.c
pbkdf.c
random-gcrypt.c
random-gnutls.c
random-none.c crypto: add "none" random provider 2020-06-15 11:33:50 +01:00
random-platform.c
secret_common.c crypto/secret: move main logic from 'secret' to 'secret_common'. 2020-06-15 11:33:51 +01:00
secret_keyring.c crypto/linux_keyring: add 'secret_keyring' secret object. 2020-06-15 11:33:51 +01:00
secret.c crypto/secret: move main logic from 'secret' to 'secret_common'. 2020-06-15 11:33:51 +01:00
tlscreds.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00
tlscredsanon.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00
tlscredspriv.h
tlscredspsk.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00
tlscredsx509.c qom: Drop parameter @errp of object_property_add() & friends 2020-05-15 07:07:58 +02:00
tlssession.c
trace-events
xts.c