diff options
author | Daniel P. Berrange | 2016-03-18 13:30:53 +0100 |
---|---|---|
committer | Daniel P. Berrange | 2016-03-21 11:02:22 +0100 |
commit | 621e6ae657d4cb44f19461db0796b09cca438778 (patch) | |
tree | 483ffbd246519bdca90a60bd7f1063f42791c365 /crypto | |
parent | Merge remote-tracking branch 'remotes/armbru/tags/pull-qapi-2016-03-18' into ... (diff) | |
download | qemu-621e6ae657d4cb44f19461db0796b09cca438778.tar.gz qemu-621e6ae657d4cb44f19461db0796b09cca438778.tar.xz qemu-621e6ae657d4cb44f19461db0796b09cca438778.zip |
crypto: add compat cast5_set_key with nettle < 3.0.0
Prior to the nettle 3.0.0 release, the cast5_set_key function
was actually named cast128_set_key, so we must add a compatibility
definition.
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cipher-nettle.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nettle.c index 3c982e483a..bec4f1c210 100644 --- a/crypto/cipher-nettle.c +++ b/crypto/cipher-nettle.c @@ -34,6 +34,8 @@ typedef nettle_crypt_func nettle_cipher_func; typedef void * cipher_ctx_t; typedef unsigned cipher_length_t; + +#define cast5_set_key cast128_set_key #else typedef const void * cipher_ctx_t; typedef size_t cipher_length_t; |