|
libosmosim 1.11.0.52-28973f
Osmocom SIM library
|
PC/SC Card reader backend for libosmosim. More...
#include <string.h>#include <stdint.h>#include <stdio.h>#include <errno.h>#include <osmocom/core/talloc.h>#include <osmocom/sim/sim.h>#include <wintypes.h>#include <winscard.h>#include "sim_int.h"Data Structures | |
| struct | pcsc_reader_state |
Macros | |
| #define | PCSC_ERROR(rv, text) |
Functions | |
| static int | pcsc_get_atr (struct osim_card_hdl *card) |
| static struct osim_reader_hdl * | pcsc_reader_open (int num, const char *id, void *ctx) |
| static struct osim_card_hdl * | pcsc_card_open (struct osim_reader_hdl *rh, enum osim_proto proto) |
| static int | pcsc_card_reset (struct osim_card_hdl *card, bool cold_reset) |
| static int | pcsc_card_close (struct osim_card_hdl *card) |
| static int | pcsc_transceive (struct osim_reader_hdl *rh, struct msgb *msg) |
Variables | |
| const struct osim_reader_ops | pcsc_reader_ops |
PC/SC Card reader backend for libosmosim.
| #define PCSC_ERROR | ( | rv, | |
| text | |||
| ) |
|
static |
References pcsc_reader_state::hCard, PCSC_ERROR, osim_reader_hdl::priv, and osim_card_hdl::reader.
|
static |
References osim_card_hdl::apps, osim_reader_hdl::card, osim_chan_hdl::card, osim_card_hdl::channels, pcsc_reader_state::dwActiveProtocol, pcsc_reader_state::hCard, pcsc_reader_state::hContext, INIT_LLIST_HEAD, osim_chan_hdl::list, llist_add(), pcsc_reader_state::name, OSIM_PROTO_T0, PCSC_ERROR, pcsc_get_atr(), pcsc_reader_state::pioSendPci, osim_reader_hdl::priv, and osim_card_hdl::reader.
|
static |
|
static |
References osim_card_hdl::atr, osim_card_hdl::atr_len, osim_reader_hdl::card, pcsc_reader_state::hCard, PCSC_ERROR, osim_reader_hdl::priv, and osim_card_hdl::reader.
Referenced by pcsc_card_open().
|
static |
|
static |
| const struct osim_reader_ops pcsc_reader_ops |
Referenced by osim_reader_open().