From patchwork Sat Jul 31 09:29:58 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wido den Hollander X-Patchwork-Id: 116171 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.4/8.14.3) with ESMTP id o6V9SXvW002511 for ; Sat, 31 Jul 2010 09:30:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753079Ab0GaJaB (ORCPT ); Sat, 31 Jul 2010 05:30:01 -0400 Received: from smtp02.mail.pcextreme.nl ([109.72.87.138]:59819 "EHLO smtp02.mail.pcextreme.nl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367Ab0GaJaA (ORCPT ); Sat, 31 Jul 2010 05:30:00 -0400 Received: from [79.99.132.153] (unknown [79.99.132.153]) by smtp02.mail.pcextreme.nl (Postfix) with ESMTPA id 03DD53FC5C for ; Sat, 31 Jul 2010 11:29:58 +0200 (CEST) Subject: PATCH: Auth: Make a correct cast From: Wido den Hollander To: ceph-devel@vger.kernel.org Date: Sat, 31 Jul 2010 11:29:58 +0200 Message-ID: <1280568598.2116.5.camel@wido-laptop.pcextreme.nl> Mime-Version: 1.0 X-Mailer: Evolution 2.28.3 Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Sat, 31 Jul 2010 09:30:06 +0000 (UTC) From bdb0acaaeb03bfc39e0dfab276e693b2f2e7c1c1 Mon Sep 17 00:00:00 2001 From: Wido den Hollander Date: Sat, 31 Jul 2010 11:27:24 +0200 Subject: [PATCH] auth: Make a correct cast --- src/auth/Crypto.cc | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/auth/Crypto.cc b/src/auth/Crypto.cc index 102c8d2..26b7b5c 100644 --- a/src/auth/Crypto.cc +++ b/src/auth/Crypto.cc @@ -107,7 +107,7 @@ public: int decrypt(bufferptr& secret, const bufferlist& in, bufferlist& out); }; -static const unsigned char *aes_iv = CEPH_AES_IV; +static const unsigned char *aes_iv = (const unsigned char *)CEPH_AES_IV; int CryptoAES::create(bufferptr& secret) { -- 1.7.0.4