pcsc-relay: fixed handling ATR for vpcd emulator

This commit is contained in:
Frank Morgner
2015-03-18 07:54:44 +01:00
parent 798fb9ba0d
commit 6dfab7fbf1
4 changed files with 12 additions and 16 deletions

View File

@@ -51,13 +51,6 @@ typedef WORD uint16_t;
#include <string.h>
#include <sys/types.h>
#define VPCD_CTRL_LEN 1
#define VPCD_CTRL_OFF 0
#define VPCD_CTRL_ON 1
#define VPCD_CTRL_RESET 2
#define VPCD_CTRL_ATR 4
static ssize_t sendToVICC(struct vicc_ctx *ctx, size_t size, const unsigned char *buffer);
static ssize_t recvFromVICC(struct vicc_ctx *ctx, unsigned char **buffer);

View File

@@ -26,6 +26,13 @@ typedef int ssize_t;
#include <unistd.h>
#endif
#define VPCD_CTRL_LEN 1
#define VPCD_CTRL_OFF 0
#define VPCD_CTRL_ON 1
#define VPCD_CTRL_RESET 2
#define VPCD_CTRL_ATR 4
struct vicc_ctx {
int server_sock;
int client_sock;