annotate simtool/globals.c @ 92:0ead9444a698

fc-simtool: read operation functions factored out
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 24 Jan 2021 19:59:10 +0000
parents fb75855a74a9
children d4150123ca45
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
85
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
1 #include <sys/types.h>
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
2 #include <pcsclite.h>
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
3 #include <winscard.h>
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
4
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
5 SCARDCONTEXT hContext;
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
6 SCARDHANDLE hCard;
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
7 char *reader_name_buf;
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
8 u_char sim_resp_data[258];
b57cf64ece29 fc-simtool project started
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff changeset
9 unsigned sim_resp_data_len, sim_resp_sw;
89
fb75855a74a9 fc-simtool: select response parsing: show number of records
Mychaela Falconia <falcon@freecalypso.org>
parents: 85
diff changeset
10 unsigned curfile_record_len;