Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-17 Thread Jes Sorensen
On 03/17/11 11:54, Alon Levy wrote: > On Mon, Mar 14, 2011 at 04:41:02PM +0100, Jes Sorensen wrote: >>> +static const char *emul_event_to_string(uint32_t emul_event) >>> +{ >>> +switch (emul_event) { >>> +case EMUL_READER_INSERT: return "EMUL_READER_INSERT"; >>> +case EMUL_READER_REMOVE

Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-17 Thread Alon Levy
On Thu, Mar 17, 2011 at 12:54:16PM +0200, Alon Levy wrote: sorry for the double review of the review, nothing new here. > On Mon, Mar 14, 2011 at 04:41:02PM +0100, Jes Sorensen wrote: > > On 02/23/11 12:20, Alon Levy wrote: > > > diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c > >

Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-17 Thread Alon Levy
On Mon, Mar 14, 2011 at 04:41:02PM +0100, Jes Sorensen wrote: > On 02/23/11 12:20, Alon Levy wrote: > > diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c > > new file mode 100644 > > index 000..bd84d45 > > --- /dev/null > > +++ b/hw/ccid-card-emulated.c > > @@ -0,0 +1,599 @@ > > +/

Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-14 Thread Jes Sorensen
On 03/14/11 17:44, Alon Levy wrote: > On Mon, Mar 14, 2011 at 04:41:02PM +0100, Jes Sorensen wrote: >>> +#define MAX_ATR_SIZE 40 >>> +struct EmulatedState { >>> +CCIDCardState base; >>> +uint8_t debug; >>> +char*backend_str; >>> +uint32_t backend; >>> +char*cert1; >>> +

Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-14 Thread Alon Levy
On Mon, Mar 14, 2011 at 04:41:02PM +0100, Jes Sorensen wrote: > On 02/23/11 12:20, Alon Levy wrote: > > diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c > > new file mode 100644 > > index 000..bd84d45 > > --- /dev/null > > +++ b/hw/ccid-card-emulated.c > > @@ -0,0 +1,599 @@ > > +/

Re: [Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-03-14 Thread Jes Sorensen
On 02/23/11 12:20, Alon Levy wrote: > diff --git a/hw/ccid-card-emulated.c b/hw/ccid-card-emulated.c > new file mode 100644 > index 000..bd84d45 > --- /dev/null > +++ b/hw/ccid-card-emulated.c > @@ -0,0 +1,599 @@ > +/* > + * CCID Card Device. Emulated card. > + * > + * Copyright (c) 2011 Red Ha

[Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-02-23 Thread Alon Levy
This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and certificates

[Qemu-devel] [PATCH 5/7] ccid: add ccid-card-emulated device

2011-02-07 Thread Alon Levy
This devices uses libcacard (internal) to emulate a smartcard conforming to the CAC standard. It attaches to the usb-ccid bus. Usage instructions (example command lines) are in the following patch in docs/ccid.txt. It uses libcacard which uses nss, so it can work with both hw cards and certificates