qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PULL v1 1/2] crypto: add compat cast5_set_key with nettle


From: Daniel P. Berrange
Subject: [Qemu-devel] [PULL v1 1/2] crypto: add compat cast5_set_key with nettle < 3.0.0
Date: Mon, 21 Mar 2016 10:07:15 +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 <address@hidden>
---
 crypto/cipher-nettle.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nettle.c
index 3c982e4..bec4f1c 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;
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]