Statistics
| Branch: | Revision:

root / libcacard @ 9f4facbc

# Date Author Comment
9f4facbc 09/02/2011 01:08 pm Brad Smith

libcacard: use INSTALL_DATA for data

Signed-off-by: Brad Smith <>
Signed-off-by: Stefan Hajnoczi <>

2542bfd5 08/29/2011 01:47 pm Stefan Weil

Fix spelling in comments and debug messages (recieve -> receive)

Signed-off-by: Stefan Weil <>
Reviewed-by: Andreas Färber <>
Signed-off-by: Stefan Hajnoczi <>

0fc6b582 08/27/2011 06:42 pm Brad

Fix build on OpenBSD with BSD userland emu and smartcard NSS enabled

The first issue is the hard coded POSIX Real Time extensions library in the
libcacard/Makefile. From looking at the code it doesn't seem this is necessary
anyway. Robert Relyea seems to think it most likely isn't necessary....

3f534581 08/22/2011 06:20 pm Brad

Improvements to libtool support.

Improvements to the libtool support in QEMU. Replace hard coded
libtool in the infrastructure with $(LIBTOOL) and allow
overriding the libtool binary used via the configure
script.

Reviewed-by: Andreas F=E4rber <>...

1f22a6bc 08/22/2011 06:19 pm Diego Elio Pettenò

build: list libraries after objects, for proper linkage

Without this change, when using -Wl,--as-needed with GNU linker, the
libraries would be discarded.

Signed-off-by: Diego Elio Pettenò <>
Signed-off-by: Anthony Liguori <>

92f562ec 08/21/2011 04:37 pm Anthony Liguori

Remove remenants of qemu_malloc

This covers the various check commands

Signed-off-by: Anthony Liguori <>

7267c094 08/21/2011 07:01 am Anthony Liguori

Use glib memory allocation and free functions

qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori <>

14015304 08/21/2011 07:01 am Anthony Liguori

Make glib mandatory and fixup utils appropriately

Signed-off-by: Anthony Liguori <>

4995f0d6 08/02/2011 02:57 pm Alon Levy

libcacard: use INSTALL_DATA for data

Signed-off-by: Alon Levy <>

0f94d6da 07/26/2011 10:42 am Alon Levy

libcacard: add pc file, install it + includes

Additionally:
+ add --includedir configure parameters
+ make install-libcacard install vscclient as well

010debef 07/22/2011 06:05 pm Robert Relyea

libcacard/vcard_emul_nss: support cards lying about CKM_RSA_X_509 support

Some tokens claim to do CKM_RSA_X_509, but then choke when they try to do the
actual operations. Try to detect those cases and treat them as if the token
didn't claim support for X_509....

ee83d414 07/22/2011 06:05 pm Christophe Fergeau

libcacard: don't leak vcard_emul_alloc_arrays mem

vcard_emul_mirror_card and vcard_emul_init use
vcard_emul_alloc_arrays to allocate memory for temporary arrays
which will contain elements that in the end will be used one by
one in cac_card_init. The arrays themselves are never stored...

00965167 07/22/2011 06:05 pm Christophe Fergeau

libcacard: s/strip(args++)/strip(args+1)

vcard_emul_options used args = strip(args++) a few times, which
was not returning the expected result since the rest of the code
expected args to be increased by at least 1, which is not the case
if *args is not a blank space when this function is called....

a5aa842a 07/22/2011 06:05 pm Christophe Fergeau

libcacard: fix soft=... parsing in vcard_emul_options

The previous parser had copy and paste errors when computing
vname_length and type_params_length, "name" was used instead
of respectively vname and type_params. This led to length that could
be bigger than the input string, and to access out of the array...

d246b3cf 07/22/2011 06:05 pm Christophe Fergeau

libcacard: introduce NEXT_TOKEN macro

vcard_emul_options now has repetitive code to read the current
token and advance to the next. After the previous changes,
this repetitive code can be moved in a NEXT_TOKEN macro to
avoid having this code duplicated.
...

2b56cb87 07/22/2011 06:05 pm Christophe Fergeau

libcacard: replace copy_string with strndup

copy_string reimplements strndup, this commit removes it and
replaces all copy_string uses with strndup.

Signed-off-by: Christophe Fergeau <>
Reviewed-by: Alon Levy <>

44dc0ca3 06/14/2011 05:34 pm Alon Levy

libcacard: add libcacard.la target

No flag to configure is required. Instead, added a libcacard.la target that
is not built by default, only when requested explicitly via:

mkdir build
cd build
../configure
make libcacard.la
make install-libcacard

Uses libtool to do actual linking of object files and shared library, and...

6774e44a 05/08/2011 01:44 pm Paolo Bonzini

libcacard: add correct subdirectory dependencies

Signed-off-by: Paolo Bonzini <>
Cc:
Signed-off-by: Stefan Hajnoczi <>

0cf818c4 05/08/2011 12:02 pm Stefan Weil

Fix typos in comments (existance -> existence)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

fc27eefe 05/08/2011 12:02 pm Stefan Weil

Fix typo in comment (consistant -> consistent)

Signed-off-by: Stefan Weil <>
Signed-off-by: Stefan Hajnoczi <>

685ff50f 04/17/2011 09:40 pm Alon Levy

libcacard: fix opposite usage of isspace

Signed-off-by: Alon Levy <>
Tested-by: Hans de Goede <>
Signed-off-by: Aurelien Jarno <>

2ac85b93 04/02/2011 03:07 am Robert Relyea

libcacard: add vscclient

client to talk to ccid-card-passthru and use smartcard on client to
perform actual operations.

v23->v24 changes: (Jes Sorensen review 2) * use qemu_socket instead of socket * use fprintf(stderr,..) for errors * remove unneccessary includes since using qemu_common.h

0c165247 04/02/2011 03:07 am Alon Levy

introduce libcacard/vscard_common.h


Signed-off-by: Alon Levy <>

v20->v21 changes: (Jes Sorensen review) * license set to 2+ * long comment fixes, remove empty line at eof. * add reference to COPYING

v19->v20 changes: * checkpatch.pl...

111a38b0 04/02/2011 03:07 am Robert Relyea

libcacard: initial commit

libcacard emulates a Common Access Card (CAC) which is a standard
for smartcards. It is used by the emulated ccid card introduced in
a following patch. Docs are available in docs/libcacard.txt

Signed-off-by: Alon Levy <>...