simutil: Add sim_app_record free

This commit is contained in:
Denis Kenzior 2018-02-28 11:08:16 -06:00
parent 984d88492d
commit 134b163182
2 changed files with 7 additions and 0 deletions

View File

@ -1549,6 +1549,12 @@ gboolean sim_cphs_is_active(unsigned char *cphs, enum sim_cphs_service index)
return ((cphs[index / 4] >> ((index % 4) * 2)) & 3) == 3;
}
void sim_app_record_free(struct sim_app_record *app)
{
g_free(app->label);
g_free(app);
}
GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len)
{
GSList *ret = NULL;

View File

@ -517,6 +517,7 @@ gboolean sim_sst_is_active(unsigned char *service_sst, unsigned char len,
gboolean sim_cphs_is_active(unsigned char *service_cphs,
enum sim_cphs_service index);
void sim_app_record_free(struct sim_app_record *app);
GSList *sim_parse_app_template_entries(const unsigned char *buffer, int len);
int sim_build_umts_authenticate(unsigned char *buffer, int len,