libosmosim  1.10.0.18-abbf.202410162026
Osmocom SIM library
sim_int.h
Go to the documentation of this file.
1 
3 #ifndef _SIM_INT_H
4 
5 #include <osmocom/sim/sim.h>
6 
8 element_alloc(struct osim_decoded_data *dd, const char *name,
10 
11 struct osim_decoded_element *
12 element_alloc_sub(struct osim_decoded_element *ee, const char *name,
13  enum osim_element_type type, enum osim_element_repr repr);
14 
15 int default_decode(struct osim_decoded_data *dd,
16  const struct osim_file_desc *desc,
17  int len, uint8_t *data);
18 
19 void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num);
20 struct osim_file_desc *alloc_df(void *ctx, uint16_t fid, const char *name);
21 struct osim_file_desc *
23  uint16_t fid, const char *name,
24  const struct osim_file_desc *in, int num);
25 
26 struct osim_file_desc *
27 alloc_adf_with_ef(void *ctx, const uint8_t *adf_name, uint8_t adf_name_len,
28  const char *name, const struct osim_file_desc *in, int num);
29 
30 extern const struct osim_reader_ops pcsc_reader_ops;
31 
33 
34 struct osim_card_app_profile *osim_aprof_usim(void *ctx);
35 struct osim_card_app_profile *osim_aprof_isim(void *ctx);
36 struct osim_card_app_profile *osim_aprof_hpsim(void *ctx);
37 
38 #endif
static size_t len(const char *str)
Routines for helping with SIM (ISO/IEC 7816-4 more generally) communication.
osim_element_repr
Definition: sim.h:107
osim_element_type
Definition: sim.h:95
struct osim_card_app_profile * osim_aprof_isim(void *ctx)
Definition: card_fs_isim.c:90
struct osim_card_app_profile * osim_aprof_hpsim(void *ctx)
Definition: card_fs_hpsim.c:55
void osim_app_profile_register(struct osim_card_app_profile *aprof)
Register an application profile.
Definition: core.c:236
void add_filedesc(struct osim_file_desc *root, const struct osim_file_desc *in, int num)
Definition: core.c:113
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
struct osim_card_app_profile * osim_aprof_usim(void *ctx)
Definition: card_fs_usim.c:412
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
const struct osim_reader_ops pcsc_reader_ops
Definition: reader_pcsc.c:202
struct osim_file_desc * alloc_df(void *ctx, uint16_t fid, const char *name)
Definition: core.c:123
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
int default_decode(struct osim_decoded_data *dd, const struct osim_file_desc *desc, int len, uint8_t *data)
Definition: core.c:461
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
A card application (e.g.
Definition: sim.h:298
Decoded data for a single file, consisting of all decoded elements.
Definition: sim.h:133
A single decoded element inside a file.
Definition: sim.h:114
enum osim_element_type type
Definition: sim.h:117
const char * name
Definition: sim.h:119
Definition: sim.h:161
struct osim_file_desc * parent
parent DF
Definition: sim.h:164
uint16_t fid
File Identifier.
Definition: sim.h:169
Definition: sim.h:373