Received: from eggs.gnu.org ([208.118.235.92]:41580) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCuT2-0005nT-9Q for qemu-devel@nongnu.org; Tue, 05 Mar 2013 11:11:57 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCuT0-0006Pj-Gx for qemu-devel@nongnu.org; Tue, 05 Mar 2013 11:11:52 -0500 Received: from mx1.redhat.com ([209.132.183.28]:11511) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCuT0-0006PP-96 for qemu-devel@nongnu.org; Tue, 05 Mar 2013 11:11:50 -0500 Date: Tue, 5 Mar 2013 18:11:44 +0200 From: Alon Levy Message-ID: <20130305161144.GA18636@garlic.tlv.redhat.com> References: <1354482055-10421-1-git-send-email-marcandre.lureau@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline In-Reply-To: Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] libcacard: correct T0 historical bytes size List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau Cc: =?iso-8859-1?Q?Marc-Andr=E9?= Lureau , qemu-devel@nongnu.org, Gerd Hoffmann On Tue, Feb 26, 2013 at 01:58:36PM +0100, Marc-Andr=E9 Lureau wrote: > ping Works, thanks. Reviewed-by: Alon Levy >=20 > On Mon, Jan 14, 2013 at 5:18 PM, Marc-Andr=E9 Lureau > wrote: > > ping > > > > On Sun, Dec 2, 2012 at 10:00 PM, Marc-Andr=E9 Lureau > > wrote: > >> The VCARD_ATR_PREFIX macro adds a prefix of 6 characters only. > >> > >> pcsc_scan was complaining before the patch: > >> > >> + Historical bytes: 56 43 41 52 44 5F 4E 53 53 > >> ERROR! ATR is truncated: 2 byte(s) is/are missing > >> --- > >> libcacard/vcardt.h | 2 +- > >> 1 file changed, 1 insertion(+), 1 deletion(-) > >> > >> diff --git a/libcacard/vcardt.h b/libcacard/vcardt.h > >> index d3e9522..538bdde 100644 > >> --- a/libcacard/vcardt.h > >> +++ b/libcacard/vcardt.h > >> @@ -26,7 +26,7 @@ typedef struct VCardEmulStruct VCardEmul; > >> #define MAX_CHANNEL 4 > >> > >> /* create an ATR with appropriate historical bytes */ > >> -#define VCARD_ATR_PREFIX(size) 0x3b, 0x68+(size), 0x00, 0xff, \ > >> +#define VCARD_ATR_PREFIX(size) 0x3b, 0x66+(size), 0x00, 0xff, \ > >> 'V', 'C', 'A', 'R', 'D', '_' > >> > >> > >> -- > >> 1.7.11.7 > >> > > > > > > > > -- > > Marc-Andr=E9 Lureau >=20 >=20 >=20 > --=20 > Marc-Andr=E9 Lureau >=20