src/sim_apdu.c File Reference

#include <ccid.h>
#include "sim-internal.h"
#include "bytesex.h"
Include dependency graph for sim_apdu.c:

Go to the source code of this file.

Functions

static int do_select (struct _sim *s, uint16_t id)
static int do_get_response (struct _sim *s, uint8_t le)
int _apdu_select (struct _sim *s, uint16_t id)
int _apdu_read_binary (struct _sim *s, uint16_t ofs, uint8_t len)
int _apdu_read_record (struct _sim *s, uint8_t rec, uint8_t len)

Function Documentation

int _apdu_read_binary ( struct _sim s,
uint16_t  ofs,
uint8_t  len 
)

Definition at line 57 of file sim_apdu.c.

References chipcard_transact(), _sim::s_cc, _sim::s_xfr, SIM_CLA, SIM_INS_READ_BINARY, xfr_reset(), xfr_rx_sw1(), and xfr_tx_byte().

Referenced by _sim_read_binary().

Here is the call graph for this function:

Here is the caller graph for this function:

int _apdu_read_record ( struct _sim s,
uint8_t  rec,
uint8_t  len 
)

Definition at line 70 of file sim_apdu.c.

References chipcard_transact(), _sim::s_cc, _sim::s_xfr, SIM_CLA, SIM_INS_READ_RECORD, xfr_reset(), xfr_rx_sw1(), and xfr_tx_byte().

Referenced by _sim_read_record().

Here is the call graph for this function:

Here is the caller graph for this function:

int _apdu_select ( struct _sim s,
uint16_t  id 
)

Definition at line 35 of file sim_apdu.c.

References do_get_response(), do_select(), _sim::s_xfr, SIM_SW1_SHORT, SIM_SW1_SUCCESS, xfr_rx_sw1(), and xfr_rx_sw2().

Referenced by _sim_select().

Here is the call graph for this function:

Here is the caller graph for this function:

static int do_get_response ( struct _sim s,
uint8_t  le 
) [static]

Definition at line 24 of file sim_apdu.c.

References chipcard_transact(), _sim::s_cc, _sim::s_xfr, SIM_CLA, SIM_INS_GET_RESPONSE, xfr_reset(), and xfr_tx_byte().

Referenced by _apdu_select().

Here is the call graph for this function:

Here is the caller graph for this function:

static int do_select ( struct _sim s,
uint16_t  id 
) [static]

Definition at line 11 of file sim_apdu.c.

References chipcard_transact(), _sim::s_cc, _sim::s_xfr, SIM_CLA, SIM_INS_SELECT, xfr_reset(), and xfr_tx_byte().

Referenced by _apdu_select().

Here is the call graph for this function:

Here is the caller graph for this function:

Generated on Sun Jan 2 08:36:01 2011 for ccid-utils by  doxygen 1.6.3