Received: from eggs.gnu.org ([2001:4830:134:3::10]:53955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFeQc-00088c-Kl for qemu-devel@nongnu.org; Thu, 16 Jul 2015 04:22:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZFeQX-0000hS-5q for qemu-devel@nongnu.org; Thu, 16 Jul 2015 04:22:02 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:38602) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZFeQX-0000gx-0w for qemu-devel@nongnu.org; Thu, 16 Jul 2015 04:21:57 -0400 Received: by wicmv11 with SMTP id mv11so8879991wic.1 for ; Thu, 16 Jul 2015 01:21:55 -0700 (PDT) MIME-Version: 1.0 From: ncornu@aldebaran.com Date: Thu, 16 Jul 2015 10:23:11 +0200 Message-Id: <1437034991-1940-1-git-send-email-ncornu@aldebaran.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH] Fix use of libnettle List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Nicolas Cornu From: Nicolas Cornu With libnettle 3.1.1 a new struct is used Signed-off-by: Nicolas Cornu --- crypto/cipher-nettle.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/crypto/cipher-nettle.c b/crypto/cipher-nettle.c index e5a14bc..f06ea92 100644 --- a/crypto/cipher-nettle.c +++ b/crypto/cipher-nettle.c @@ -27,8 +27,8 @@ typedef struct QCryptoCipherNettle QCryptoCipherNettle; struct QCryptoCipherNettle { void *ctx_encrypt; void *ctx_decrypt; - nettle_crypt_func *alg_encrypt; - nettle_crypt_func *alg_decrypt; + nettle_cipher_func *alg_encrypt; + nettle_cipher_func *alg_decrypt; uint8_t *iv; size_t niv; }; @@ -83,8 +83,8 @@ QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm = alg, des_set_key(ctx->ctx_encrypt, rfbkey); g_free(rfbkey); =20 - ctx->alg_encrypt =3D (nettle_crypt_func *)des_encrypt; - ctx->alg_decrypt =3D (nettle_crypt_func *)des_decrypt; + ctx->alg_encrypt =3D (nettle_cipher_func *)des_encrypt; + ctx->alg_decrypt =3D (nettle_cipher_func *)des_decrypt; =20 ctx->niv =3D DES_BLOCK_SIZE; break; @@ -98,8 +98,8 @@ QCryptoCipher *qcrypto_cipher_new(QCryptoCipherAlgorithm = alg, aes_set_encrypt_key(ctx->ctx_encrypt, nkey, key); aes_set_decrypt_key(ctx->ctx_decrypt, nkey, key); =20 - ctx->alg_encrypt =3D (nettle_crypt_func *)aes_encrypt; - ctx->alg_decrypt =3D (nettle_crypt_func *)aes_decrypt; + ctx->alg_encrypt =3D (nettle_cipher_func *)aes_encrypt; + ctx->alg_decrypt =3D (nettle_cipher_func *)aes_decrypt; =20 ctx->niv =3D AES_BLOCK_SIZE; break; --=20 2.4.6 --=20 *This email and any attachment thereto are confidential and intended solely= =20 for the use of the individual or entity to whom they are addressed.If you= =20 are not the intended recipient, please be advised that disclosing, copying,= =20 distributing or taking any action in reliance on the contents of this email= =20 is strictly prohibited. In such case, please immediately advise the sender,= =20 and delete all copies and attachment from your system.This email shall not= =20 be construed and is not tantamount to an offer, an acceptance of offer, or= =20 an agreement by Aldebaran Robotics on any discussion or contractual=20 document whatsoever. No employee or agent is authorized to represent or=20 bind Aldebaran Robotics to third parties by email, or act on behalf of=20 Aldebaran Robotics by email, without express written confirmation by=20 Aldebaran Robotics' duly authorized representatives.* ------------------------------ *Ce message =E9lectronique et =E9ventuelles pi=E8ces jointes sont confident= iels,=20 et exclusivement destin=E9s =E0 la personne ou l'entit=E9 =E0 qui ils sont= =20 adress=E9s.* *Si vous n'=EAtes pas le destinataire vis=E9, vous =EAtes pri=E9 de ne pas= =20 divulguer, copier, distribuer ou prendre toute d=E9cision sur la foi de ce= =20 message =E9lectronique. Merci d'en aviser imm=E9diatement l'exp=E9diteur et= de=20 supprimer toutes les copies et =E9ventuelles pi=E8ces jointes de votre syst= =E8me.* *Ce message =E9lectronique n'=E9quivaut pas =E0 une offre, =E0 une acceptat= ion=20 d'offre, ou =E0 un accord d'Aldebaran Robotics sur toute discussion ou=20 document contractuel quel qu'il soit, et ne peut =EAtre interpr=E9t=E9 comm= e tel.=20 Aucun employ=E9 ou agent d'Aldebaran Robotics n'est autoris=E9 =E0 repr=E9s= enter ou=20 =E0 engager la soci=E9t=E9 par email, ou =E0 agir au nom et pour le compte = de la=20 soci=E9t=E9 par email, sans qu'une confirmation =E9crite soit donn=E9e par = le=20 repr=E9sentant l=E9gal d'Aldebaran Robotics ou par toute autre personne aya= nt=20 re=E7u d=E9l=E9gation de pouvoir appropri=E9e.*