From d54c2ee8c51b41b7f7a5a469efd6bb391a0c2b75 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Tue, 17 Jan 2012 18:25:50 +0100 Subject: initial checkin of 'libosmosim' --- src/sim/gsm_int.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/sim/gsm_int.h (limited to 'src/sim/gsm_int.h') diff --git a/src/sim/gsm_int.h b/src/sim/gsm_int.h new file mode 100644 index 00000000..3abb3e6f --- /dev/null +++ b/src/sim/gsm_int.h @@ -0,0 +1,12 @@ + +int gsm_hpplmn_decode(struct osim_decoded_data *dd, + const struct osim_file_desc *desc, + int len, uint8_t *data); + +int gsm_lp_decode(struct osim_decoded_data *dd, + const struct osim_file_desc *desc, + int len, uint8_t *data); + +int gsm_imsi_decode(struct osim_decoded_data *dd, + const struct osim_file_desc *desc, + int len, uint8_t *data); -- cgit v1.2.3 From bb5f3c7e04e356caa315618f41008280a64929d8 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 4 May 2014 13:59:41 +0200 Subject: sim: Update to latest SIM/USIM specs and include size information --- src/sim/gsm_int.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/sim/gsm_int.h') diff --git a/src/sim/gsm_int.h b/src/sim/gsm_int.h index 3abb3e6f..c79a0be2 100644 --- a/src/sim/gsm_int.h +++ b/src/sim/gsm_int.h @@ -1,3 +1,14 @@ +#include +#include + +const struct osim_file_desc *sim_ef_in_gsm; +const size_t sim_ef_in_gsm_num; + +const struct osim_file_desc *sim_ef_in_graphics; +const size_t sim_ef_in_graphics_num; + +const struct osim_file_desc *sim_ef_in_telecom; +const size_t sim_ef_in_telecom_num; int gsm_hpplmn_decode(struct osim_decoded_data *dd, const struct osim_file_desc *desc, -- cgit v1.2.3 From 6729a9776aeffde08b11342dfc53e33873a33594 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Sun, 26 Oct 2014 19:04:56 +0100 Subject: make sure to register DF.TELECOM and DF.GSM for SIM, USIM + TSIM before we only did it partially, and by exporting data from sim, rather than the new osim_int_cprof_add_{gsm,telecom}() functions. --- src/sim/gsm_int.h | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/sim/gsm_int.h') diff --git a/src/sim/gsm_int.h b/src/sim/gsm_int.h index c79a0be2..54a2fbf2 100644 --- a/src/sim/gsm_int.h +++ b/src/sim/gsm_int.h @@ -1,14 +1,8 @@ #include #include -const struct osim_file_desc *sim_ef_in_gsm; -const size_t sim_ef_in_gsm_num; - -const struct osim_file_desc *sim_ef_in_graphics; -const size_t sim_ef_in_graphics_num; - -const struct osim_file_desc *sim_ef_in_telecom; -const size_t sim_ef_in_telecom_num; +int osim_int_cprof_add_gsm(struct osim_file_desc *mf); +int osim_int_cprof_add_telecom(struct osim_file_desc *mf); int gsm_hpplmn_decode(struct osim_decoded_data *dd, const struct osim_file_desc *desc, -- cgit v1.2.3