Received: from eggs.gnu.org ([2001:4830:134:3::10]:38040) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahwkA-0008Pm-IC for qemu-devel@nongnu.org; Mon, 21 Mar 2016 06:07:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ahwk8-0006GT-2S for qemu-devel@nongnu.org; Mon, 21 Mar 2016 06:07:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:57137) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ahwk7-0006GM-Tr for qemu-devel@nongnu.org; Mon, 21 Mar 2016 06:07:24 -0400 From: "Daniel P. Berrange" Date: Mon, 21 Mar 2016 10:07:15 +0000 Message-Id: <1458554836-8864-2-git-send-email-berrange@redhat.com> In-Reply-To: <1458554836-8864-1-git-send-email-berrange@redhat.com> References: <1458554836-8864-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PULL 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: Peter Maydell 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