Statistics
| Branch: | Revision:

root / libcacard / vscclient.c @ feature-archipelago

History | View | Annotate | Download (23.1 kB)

# Date Author Comment
fa88afa5 12/16/2013 11:12 am Marc-André Lureau

vscclient: do not add a socket watch if there is not data to send

Fixes the following error:
  • (process:780): CRITICAL **: do_socket_send: assertion
    `socket_to_send->len != 0' failed

Signed-off-by: Marc-André Lureau <>
Signed-off-by: Gerd Hoffmann <>

5ad04fb6 12/09/2013 12:19 pm Stefan Weil

libcacard: Fix compilation for older versions of glib (bug #1258168)

See https://bugs.launchpad.net/bugs/1258168

libcacard/vscclient.c: In function 'do_socket_read':
libcacard/vscclient.c:410: warning: implicit declaration of function 'g_warn_if_reached'...

69fded48 09/20/2013 07:09 pm Michael Tokarev

vscclient: remove unnecessary use of uninitialized variable

Signed-off-by: Wenchao Xia <>
Reviewed-by: Stefan Hajnoczi <>
Signed-off-by: Michael Tokarev <>

581fe784 06/12/2013 03:04 pm Alon Levy

libcacard/vscclient: fix leakage of socket on error paths

Spotted by Coverity.

Signed-off-by: Alon Levy <>
Reviewed-by: Peter Maydell <>
Signed-off-by: Michael Tokarev <>

c9495ee9 04/24/2013 11:47 am Marc-André Lureau

libcacard: teach vscclient to use GMainLoop for portability

This version handles non-blocking sending and receiving from the
socket.

Signed-off-by: Marc-André Lureau <>
Reviewed-by: Alon Levy <>

930c8ad4 04/24/2013 11:47 am Marc-André Lureau

libcacard: vscclient to use QemuThread for portability

Signed-off-by: Marc-André Lureau <>
Reviewed-by: Alon Levy <>

a50b831a 04/24/2013 11:47 am Marc-André Lureau

libcacard: split vscclient main() from socket reading

Signed-off-by: Marc-André Lureau <>
Reviewed-by: Alon Levy <>

be168af8 01/30/2013 12:14 pm Markus Armbruster

libcacard: Fix unchecked strdup() by converting to g_strdup()

Note that we already free with g_free().

Signed-off-by: Markus Armbruster <>
Reviewed-by: Eric Blake <>
Signed-off-by: Stefan Hajnoczi <>

1de7afc9 12/19/2012 09:32 am Paolo Bonzini

misc: move include files to include/qemu/

Signed-off-by: Paolo Bonzini <>

ba79c886 03/08/2012 05:22 pm Stefan Weil

libcacard: Use format specifier %u instead of %d for unsigned values

splint reported warnings for those code statements.

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

93148aa5 03/08/2012 05:22 pm Stefan Weil

Spelling fixes in comments (it's -> its)

  • it's -> its (fixed for all files)
  • dont -> don't (only fixed in a line which was touched by the previous fix)
  • distrub -> disturb (fixed in the same line)

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

e7c5e893 10/25/2011 04:44 pm Alon Levy

libcacard/vscclient: fix error paths for socket creation

Signed-off-by: Alon Levy <>

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 <>

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 <>

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