From 22c0738981b8bf592d11ea034fc9fbd12b7643aa Mon Sep 17 00:00:00 2001 From: August Mayer Date: Thu, 16 Aug 2012 09:37:19 +0200 Subject: [PATCH] sim: implement function to get password type --- src/sim.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/sim.c b/src/sim.c index 4384eb0c..8059d2b5 100644 --- a/src/sim.c +++ b/src/sim.c @@ -2243,6 +2243,14 @@ enum ofono_sim_cphs_phase ofono_sim_get_cphs_phase(struct ofono_sim *sim) return sim->cphs_phase; } +enum ofono_sim_password_type ofono_sim_get_password_type(struct ofono_sim *sim) +{ + if (sim == NULL) + return OFONO_SIM_PASSWORD_NONE; + + return sim->pin_type; +} + const unsigned char *ofono_sim_get_cphs_service_table(struct ofono_sim *sim) { if (sim == NULL)