Skip to contentSkip to conversation

libcacard: add vscclient

PATCH In review Alon Levy 1 participant 1 message Apr 1, 2011

lore
Share & tools
lore

Alon Levy

author
#0 lore raw

PATCH v25 7/10 libcacard: add vscclient

From: Robert Relyea <[email protected]>

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

---
 libcacard/Makefile    |    7 +-
 libcacard/vscclient.c |  652 +++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 658 insertions(+), 1 deletions(-)
 create mode 100644 libcacard/vscclient.c
libcacard/Makefile +6 -1
index 0211eac..4010029 100644
@@ -15,6 +15,11 @@ QEMU_OBJS=$(addprefix ../, $(QEMU_THREAD) $(oslib-obj-y) $(trace-obj-y) qemu-mal
 
 QEMU_CFLAGS+=-I../
 
+vscclient: $(libcacard-y) $(QEMU_OBJS) vscclient.o
+	$(call quiet-command,$(CC) $(libcacard_libs) -lrt -o $@ $^,"  LINK  $(TARGET_DIR)$@")
+
+all: vscclient
+
 clean:
-	rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~
+	rm -f *.o */*.o *.d */*.d *.a */*.a *~ */*~ vscclient
 
libcacard/vscclient.c new file +652 -0

652 lines not on this page · raw message

Signature · 1 line
1.7.4.2