From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45596) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG3B2-0008JX-Vu for qemu-devel@nongnu.org; Fri, 17 Jul 2015 06:47:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZG3Az-00022f-Bm for qemu-devel@nongnu.org; Fri, 17 Jul 2015 06:47:36 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62296) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZG3Az-00022X-6t for qemu-devel@nongnu.org; Fri, 17 Jul 2015 06:47:33 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id A79508E235 for ; Fri, 17 Jul 2015 10:47:31 +0000 (UTC) Date: Fri, 17 Jul 2015 11:47:27 +0100 From: "Daniel P. Berrange" Message-ID: <20150717104727.GD4835@redhat.com> References: <1437040522-19799-1-git-send-email-rjones@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1437040522-19799-1-git-send-email-rjones@redhat.com> Subject: Re: [Qemu-devel] [PATCH] crypto/cipher-nettle.c: Pass correct function type to cbc_encrypt and cbc_decrypt. Reply-To: "Daniel P. Berrange" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Richard W.M. Jones" Cc: qemu-devel@nongnu.org On Thu, Jul 16, 2015 at 10:55:22AM +0100, Richard W.M. Jones wrote: > The prototypes of the {nettle_}cbc_encrypt and cbc_decrypt functions > are: > > void > cbc_encrypt(const void *ctx, nettle_cipher_func *f, > size_t block_size, uint8_t *iv, > size_t length, uint8_t *dst, > const uint8_t *src); > > void > cbc_decrypt(const void *ctx, nettle_cipher_func *f, > size_t block_size, uint8_t *iv, > size_t length, uint8_t *dst, > const uint8_t *src); > > Since we passed nettle_crypt_func (instead of nettle_cipher_func) as > the second argument, this gave the errors below. Presumably you used Fedora rawhide which will have nettle 3.x where as my code was written against FEdora 22 nettle 2.7.x The function prototypes were changed in 3.x, so we need a conditional fix - one was just sent in a pull request yesterday: https://lists.gnu.org/archive/html/qemu-devel/2015-07/msg03678.html Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://autobuild.org -o- http://search.cpan.org/~danberr/ :| |: http://entangle-photo.org -o- http://live.gnome.org/gtk-vnc :|