Loading...
Searching...
No Matches
sim_int.h
Go to the documentation of this file.
#ifndef _SIM_INT_H
#include <osmocom/sim/sim.h>
struct osim_decoded_element *
element_alloc(struct osim_decoded_data *dd, const char *name,
enum osim_element_type type, enum osim_element_repr repr);
struct osim_decoded_element *
element_alloc_sub(struct osim_decoded_element *ee, const char *name,
enum osim_element_type type, enum osim_element_repr repr);
int default_decode(struct osim_decoded_data *dd,
const struct osim_file_desc *desc,
int len, uint8_t *data);
void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num);
struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name);
struct osim_file_desc *
add_df_with_ef(struct osim_file_desc *parent,
uint16_t fid, const char *name,
const struct osim_file_desc *in, int num);
struct osim_file_desc *
alloc_adf_with_ef(void *ctx, const uint8_t *adf_name, uint8_t adf_name_len,
const char *name, const struct osim_file_desc *in, int num);
extern const struct osim_reader_ops pcsc_reader_ops;
void osim_app_profile_register(struct osim_card_app_profile *aprof);
struct osim_card_app_profile *osim_aprof_usim(void *ctx);
struct osim_card_app_profile *osim_aprof_isim(void *ctx);
struct osim_card_app_profile *osim_aprof_hpsim(void *ctx);
#endif
len
static size_t len(const char *str)
pcsc_reader_ops
const struct osim_reader_ops pcsc_reader_ops
Definition reader_pcsc.c:202
sim.h
Routines for helping with SIM (ISO/IEC 7816-4 more generally) communication.
osim_element_repr
osim_element_repr
Definition sim.h:107
osim_element_type
osim_element_type
Definition sim.h:95
osim_aprof_hpsim
struct osim_card_app_profile * osim_aprof_hpsim(void *ctx)
Definition card_fs_hpsim.c:55
element_alloc_sub
struct osim_decoded_element * element_alloc_sub(struct osim_decoded_element *ee, const char *name, enum osim_element_type type, enum osim_element_repr repr)
Definition core.c:98
osim_app_profile_register
void osim_app_profile_register(struct osim_card_app_profile *aprof)
Register an application profile.
Definition core.c:236
add_filedesc
void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num)
Definition core.c:113
element_alloc
struct osim_decoded_element * element_alloc(struct osim_decoded_data *dd, const char *name, enum osim_element_type type, enum osim_element_repr repr)
Definition core.c:83
alloc_df
struct osim_file_desc * alloc_df(void *ctx, uint16_t fid, const char *name)
Definition core.c:123
alloc_adf_with_ef
struct osim_file_desc * alloc_adf_with_ef(void *ctx, const uint8_t *adf_name, uint8_t adf_name_len, const char *name, const struct osim_file_desc *in, int num)
Definition core.c:156
default_decode
int default_decode(struct osim_decoded_data *dd, const struct osim_file_desc *desc, int len, uint8_t *data)
Definition core.c:461
add_df_with_ef
struct osim_file_desc * add_df_with_ef(struct osim_file_desc *parent, uint16_t fid, const char *name, const struct osim_file_desc *in, int num)
Definition core.c:139
osim_aprof_isim
struct osim_card_app_profile * osim_aprof_isim(void *ctx)
Definition card_fs_isim.c:90
osim_aprof_usim
struct osim_card_app_profile * osim_aprof_usim(void *ctx)
Definition card_fs_usim.c:412
desc
osim_card_app_profile
A card application (e.g.
Definition sim.h:298
osim_decoded_data
Decoded data for a single file, consisting of all decoded elements.
Definition sim.h:133
osim_decoded_element
A single decoded element inside a file.
Definition sim.h:114
osim_decoded_element::type
enum osim_element_type type
Definition sim.h:117
osim_decoded_element::name
const char * name
Definition sim.h:119
osim_file_desc
Definition sim.h:161
osim_file_desc::parent
struct osim_file_desc * parent
parent DF
Definition sim.h:164
osim_file_desc::fid
uint16_t fid
File Identifier.
Definition sim.h:169
osim_reader_ops
Definition sim.h:373