]> Git Repo - qemu.git/commitdiff
crypto: add compat cast5_set_key with nettle < 3.0.0
authorDaniel P. Berrange <[email protected]>
Fri, 18 Mar 2016 12:30:53 +0000 (12:30 +0000)
committerDaniel P. Berrange <[email protected]>
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 <[email protected]>
crypto/cipher-nettle.c

index 3c982e483abb6f098347e885c7c1fe26e1948a76..bec4f1c210257088e01317709f416853436bad21 100644 (file)
@@ -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;
This page took 0.030015 seconds and 4 git commands to generate.