From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36958) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aguLz-0007ZK-Dc for qemu-devel@nongnu.org; Fri, 18 Mar 2016 09:22:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aguLw-0005OA-8h for qemu-devel@nongnu.org; Fri, 18 Mar 2016 09:22:11 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47439) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aguLw-0005O4-1R for qemu-devel@nongnu.org; Fri, 18 Mar 2016 09:22:08 -0400 From: "Daniel P. Berrange" Date: Fri, 18 Mar 2016 13:21:55 +0000 Message-Id: <1458307316-25894-2-git-send-email-berrange@redhat.com> In-Reply-To: <1458307316-25894-1-git-send-email-berrange@redhat.com> References: <1458307316-25894-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v1 1/2] crypto: add compat cast5_set_key with nettle < 3.0.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Gabriel L. Somlo" , Markus Armbruster 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 --- 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