summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Levy <alevy@redhat.com>2010-10-06 16:06:55 +0200
committerAlon Levy <alevy@redhat.com>2010-10-06 16:06:55 +0200
commit3309db85ad9e3a643c319c8f5ba063a134ec0adb (patch)
treedfb34eaa8ab0db503e084fad94a4abf9c6ea1348
parent5519d97454ce3fc9217c173bad6051610691556f (diff)
add Reconnect message (not secure at all, proof of concept)
-rw-r--r--vscard_common.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/vscard_common.h b/vscard_common.h
index 7966258..1a4afd7 100644
--- a/vscard_common.h
+++ b/vscard_common.h
@@ -53,7 +53,8 @@ typedef enum {
VSC_ReaderRemove,
VSC_ATR,
VSC_CardRemove,
- VSC_APDU
+ VSC_APDU,
+ VSC_Reconnect
} VSCMsgType;
typedef enum {
@@ -120,4 +121,11 @@ typedef struct VSCMsgAPDU {
uint8_t data[0];
} VSCMsgAPDU;
+/* VSCMsgReconnect Host -> Client
+ * */
+typedef struct VSCMsgReconnect {
+ uint32_t ip;
+ uint16_t port;
+} VSCMsgReconnect;
+
#endif