From a8671fe1f75ad5bc2a48f3674a227baf8e6d3f1d Mon Sep 17 00:00:00 2001 From: Jussi Kangas Date: Tue, 8 Feb 2011 14:48:18 +0200 Subject: 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. --- src/call-meter.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/call-meter.c') 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); -- cgit v1.2.3