libosmosim 1.9.0.209-e0c63
Osmocom SIM library
card_fs_hpsim.c File Reference

3GPP HPSIM specific structures / routines. More...

#include <errno.h>
#include <string.h>
#include <osmocom/sim/sim.h>
#include <osmocom/core/talloc.h>
#include <osmocom/gsm/gsm48.h>
#include "sim_int.h"
#include "gsm_int.h"

Functions

struct osim_card_app_profileosim_aprof_hpsim (void *ctx)
 

Variables

const struct osim_card_sw ts31_104_sw []
 
static const struct osim_file_desc hpsim_ef_in_adf_hpsim []
 
static const uint8_t adf_hpsim_aid [] = { 0xA0, 0x00, 0x00, 0x00, 0x87, 0x10, 0x0A }
 

Detailed Description

3GPP HPSIM specific structures / routines.

Function Documentation

◆ osim_aprof_hpsim()

Variable Documentation

◆ adf_hpsim_aid

const uint8_t adf_hpsim_aid[] = { 0xA0, 0x00, 0x00, 0x00, 0x87, 0x10, 0x0A }
static

Referenced by osim_aprof_hpsim().

◆ hpsim_ef_in_adf_hpsim

const struct osim_file_desc hpsim_ef_in_adf_hpsim[]
static
Initial value:
= {
EF_LIN_FIX_N(0x6F06, 0x06, "EF.ARR", 0, 1, 256,
"Access Rule TLV data objects"),
EF_TRANSP_N(0x6F07, 0x07, "EF.IMST", 0, 9, 9,
"IMSI"),
EF_TRANSP_N(0x6FAD, 0x03, "EF_AD", 0, 4, 8,
"Administrative Data"),
}
#define EF_TRANSP_N(fid, sfi, ns, flags, smin, srec, nl)
Convenience macros for defining EF.
Definition: sim.h:219
#define EF_LIN_FIX_N(fid, sfi, ns, flags, smin, srec, nl)
Convenience macros for defining EF.
Definition: sim.h:237

Referenced by osim_aprof_hpsim().

◆ ts31_104_sw

const struct osim_card_sw ts31_104_sw[]
Initial value:
= {
{
0x9862, 0xffff, SW_TYPE_STR, SW_CLS_ERROR,
.u.str = "Security management - Authentication error, incorrect MAC",
},
}
@ SW_CLS_ERROR
Definition: sim.h:275
#define OSIM_CARD_SW_LAST
Definition: sim.h:292
@ SW_TYPE_STR
Definition: sim.h:267

Referenced by osim_aprof_hpsim().