gsm: add SimIdentifier property
An obfuscated SimIdentifier that may be available before the PIN has been entered, for use in auto-unlocking a device. If this value is present, it should be used in preference to DeviceIdentifier as it is SIM-specific like the PIN code.
This commit is contained in:
@@ -33,6 +33,13 @@ response_clean (GString *response)
|
||||
s -= 2;
|
||||
}
|
||||
|
||||
/* Contains duplicate '<CR><CR>' */
|
||||
s = response->str;
|
||||
while ((response->len >= 2) && (*s == '\r') && (*(s + 1) == '\r')) {
|
||||
g_string_erase (response, 0, 1);
|
||||
s = response->str;
|
||||
}
|
||||
|
||||
/* Starts with one or more '<CR><LF>' */
|
||||
s = response->str;
|
||||
while ((response->len >= 2) && (*s == '\r') && (*(s + 1) == '\n')) {
|
||||
|
Reference in New Issue
Block a user