pcsc-relay: fixed handling ATR for vpcd emulator
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user