diff options
author | Jussi Kangas <jussi.kangas@tieto.com> | 2011-02-08 14:48:18 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-02-08 10:19:52 -0600 |
commit | a8671fe1f75ad5bc2a48f3674a227baf8e6d3f1d (patch) | |
tree | 3e56bc4a6630d9e1883d3655e536d356f7808f5f /src/call-meter.c | |
parent | d8eacb663652e25f02dd8562de9e6c0122a14c06 (diff) | |
download | ofono-a8671fe1f75ad5bc2a48f3674a227baf8e6d3f1d.tar.bz2 |
sim: Allow usage of SIM codes longer than 8 digits
Some PIN codes (e.g. subsidy locks, etc) can have PIN codes much longer
than the default 8 digits.
Diffstat (limited to 'src/call-meter.c')
-rw-r--r-- | src/call-meter.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/call-meter.c b/src/call-meter.c index d483e2eb..0789935d 100644 --- a/src/call-meter.c +++ b/src/call-meter.c @@ -549,7 +549,7 @@ static DBusMessage *cm_set_property(DBusConnection *conn, DBusMessage *msg, dbus_message_iter_get_basic(&iter, &passwd); - if (!is_valid_pin(passwd, PIN_TYPE_PIN)) + if (!__ofono_is_valid_sim_pin(passwd, OFONO_SIM_PASSWORD_SIM_PIN2)) return __ofono_error_invalid_format(msg); for (property = cm_properties; property->name; property++) { @@ -621,7 +621,7 @@ static DBusMessage *cm_acm_reset(DBusConnection *conn, DBusMessage *msg, DBUS_TYPE_INVALID) == FALSE) return __ofono_error_invalid_args(msg); - if (!is_valid_pin(pin2, PIN_TYPE_PIN)) + if (!__ofono_is_valid_sim_pin(pin2, OFONO_SIM_PASSWORD_SIM_PIN2)) return __ofono_error_invalid_format(msg); cm->pending = dbus_message_ref(msg); |