Statistics
| Branch: | Revision:

root / libcacard @ 0f94d6da

Name Size
Makefile 2.2 kB
cac.c 12.6 kB
cac.h 741 Bytes
card_7816.c 27.3 kB
card_7816.h 2 kB
card_7816t.h 6.9 kB
event.c 2.2 kB
eventt.h 518 Bytes
libcacard.pc.in 221 Bytes
link_test.c 572 Bytes
vcard.c 7.8 kB
vcard.h 2.8 kB
vcard_emul.h 2.1 kB
vcard_emul_nss.c 37.2 kB
vcard_emul_type.c 1.6 kB
vcard_emul_type.h 1003 Bytes
vcardt.h 1.7 kB
vevent.h 562 Bytes
vreader.c 11.2 kB
vreader.h 1.9 kB
vreadert.h 564 Bytes
vscard_common.h 4.7 kB
vscclient.c 20.5 kB

Latest revisions

# Date Author Comment
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 <>

View revisions

Also available in: Atom