projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4829e03
)
crypto: add compat cast5_set_key with nettle < 3.0.0
author
Daniel P. Berrange
<berrange@redhat.com>
Fri, 18 Mar 2016 12:30:53 +0000
(12:30 +0000)
committer
Daniel P. Berrange
<berrange@redhat.com>
Mon, 21 Mar 2016 10:02:22 +0000
(10:02 +0000)
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>
crypto/cipher-nettle.c
patch
|
blob
|
history
diff --git
a/crypto/cipher-nettle.c
b/crypto/cipher-nettle.c
index 3c982e483abb6f098347e885c7c1fe26e1948a76..bec4f1c210257088e01317709f416853436bad21 100644
(file)
--- 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;