Commit Graph

71 Commits

Author SHA1 Message Date
Denis Kenzior 8b9e4c1e18 simutil: Fix a memory leak 2011-01-20 11:16:04 -06:00
Andrzej Zaborowski 1542bf0c59 simutil: SIM applications directory decoding utils 2011-01-20 11:15:34 -06:00
Denis Kenzior 2e1318ef34 simutil: Remove inaccurate comment 2010-12-17 16:08:27 -06:00
Lucas De Marchi 42bafa260a simutil: explicitly compare pointers to NULL
This patch was generated by the following semantic patch
(http://coccinelle.lip6.fr/)

// <smpl>
@fix disable is_null,isnt_null1@
expression *E;
@@

- !E
+ E == NULL
// </smpl>
2010-11-29 13:12:04 -06:00
Jeevaka Badrappan 4988741107 simutil: coding style fixes - rule M6 2010-11-22 05:06:38 -06:00
Petteri Tikander 1f2140dabe simutil: response-handler returns now also file-status 2010-10-15 02:01:34 -05:00
Kristen Carlson Accardi 920ee13a2b simutil: add file type for EFimg 2010-10-13 05:04:46 -05:00
Jeevaka Badrappan 4196182770 Fix multi-line comment style issues 2010-09-21 21:16:01 -05:00
Yang Gu d43b2c0a61 sim: Read EFsst 2010-08-31 13:07:54 -05:00
Andrzej Zaborowski 77543590d9 simutil: Fix compilation with gcc 4.3.2
This gcc version gives two signed / unsigned comparison warnings.
2010-08-26 18:44:50 -05:00
Yang Gu c679babdc5 sim: Read EFust and EFest 2010-08-23 14:29:21 -05:00
Denis Kenzior 70b09d1742 simutil: Remove unneeded forward-declaration 2010-06-09 13:08:23 -05:00
Andrzej Zaborowski 4dcb3fed2a simutil: Fix MMC MNC encoding for 2-digit MNCs. 2010-06-09 13:07:09 -05:00
Andrzej Zaborowski 9f925b3620 util: Add a "sim string" encoding utility. 2010-06-09 12:43:27 -05:00
Denis Kenzior e8a7b5cc46 simutil: Make sim_adn_build use sim bcd 2010-05-26 10:00:02 -05:00
Denis Kenzior b0cf35c324 simutil: Add sim_encode_bcd_number 2010-05-26 09:59:14 -05:00
Denis Kenzior 75ce0a7b28 simutil: Make sim_adn_parse use sim bcd version 2010-05-26 09:51:51 -05:00
Denis Kenzior 48a4f59bdd simutil: add sim_extract_bcd_number 2010-05-26 09:50:51 -05:00
Andrzej Zaborowski af2004ece1 simutil: Add MMC MNC pair encoding utility 2010-05-25 16:52:54 -05:00
Denis Kenzior 83240f1389 simutil: simplify ctlv logic 2010-05-25 16:52:51 -05:00
Denis Kenzior ec8a6cbc43 simutil: Simplify ber_tlv_builder_optimize logic 2010-05-25 16:52:51 -05:00
Denis Kenzior ea46bae631 simutil: Simplify ber_tlv builder set_length logic 2010-05-25 16:52:51 -05:00
Denis Kenzior fd8d7b8992 simutil: Simplify builder_write_header 2010-05-25 16:52:51 -05:00
Denis Kenzior 91c4644458 simutil: Be more type-correct 2010-05-25 16:52:51 -05:00
Denis Kenzior afedfcb486 simutil: Get rid of ugly-named functions
Replace them by macros
2010-05-25 16:52:51 -05:00
Andrzej Zaborowski 1c3060026e simutil: Add utilities for encoding BTLV and CTLV 2010-05-25 16:52:50 -05:00
Yang Gu 353d955dea simutil: Add comprehension tlv copy
Can be used to save the state of the current iterator and 'peek' ahead.
2010-05-13 11:02:52 -05:00
Andrzej Zaborowski 6e28fd9396 Fix CTLV three-byte tag parsing. 2010-04-22 17:44:20 -05:00
Yang Gu a13db81229 Make the function to parse mcc and mnc public 2010-03-25 11:36:11 -05:00
Denis Kenzior 19a20e4ccd Add COMPREHENSION TLV iterator utilities 2010-02-23 12:03:04 -06:00
Denis Kenzior d98be70fa9 Add Simple TLV iterator utilities 2010-02-23 12:03:03 -06:00
Denis Kenzior 0db0108120 Fix: EFspdi parsing
EFspdi is a nested BER-TLV structure.  The outside BER-TLV has the tag
A3, and the inside contains the PLMN list TLV with tag 0x80.
2010-02-23 12:03:03 -06:00
Denis Kenzior 5a86a7408a Rewrite ber_tlv_find_tag to use ber_tlv iterator 2010-02-23 12:03:03 -06:00
Denis Kenzior 077cfe284e Move from header to implementation 2010-02-23 12:03:03 -06:00
Denis Kenzior 0d163e6295 Add BER-TLV iterator utilities 2010-02-23 12:03:00 -06:00
Marcel Holtmann 144080e749 Update copyright information 2010-01-01 17:00:10 -08:00
Marcel Holtmann 647ebdfd13 Fix pointer size problem with GUINT_TO_POINTER and unsigned short 2009-10-04 13:02:56 +02:00
Denis Kenzior 6ef9a4b2dd Fix: Make const correct 2009-10-02 19:25:44 -05:00
Denis Kenzior f7c97ca10a Fix: Add additional error checking 2009-10-02 18:25:56 -05:00
Denis Kenzior c8150fc120 Use small caps for 2G/3G functions 2009-10-02 18:25:56 -05:00
Denis Kenzior 8bf64ef07d Add utility to parse 3G get response data
Based on ETSI 102.221
2009-10-02 18:25:56 -05:00
Denis Kenzior c9a2eedc08 Add utility to parse 2G GET_RESPONSE data
This format is described in 51.011 and the older 11.11.  It is not
supported by newer 3G UICC based devices & sim card combinations
2009-10-02 18:25:56 -05:00
Denis Kenzior c8e515fef8 Add utility to lookup files in EF db 2009-10-02 18:25:56 -05:00
Denis Kenzior 6d9ec89259 Add basic elementary file database 2009-10-02 18:25:55 -05:00
Marcel Holtmann 0e9f9d8bc8 Fix segmentation fault from SIM reading on Calypso modem 2009-09-25 14:07:33 -07:00
Denis Kenzior 9f27be58bc Move some stuff around 2009-09-22 00:07:06 -05:00
Andrzej Zaborowski ee02b14836 Do PIN authentication
This adds checking whether PIN is required during SIM initialisation and
delaying the sim ready notifications until after correct PIN is given.
2009-09-22 00:07:06 -05:00
Denis Kenzior efdf84b62c Simplify nested ifs 2009-08-31 15:12:37 -05:00
Denis Kenzior a96fde1362 Simplify overly complicated code 2009-08-31 15:12:37 -05:00
Andrzej Zaborowski f21930f04e Decode and encode alpha-identifier fields
Add identifier argument to sim_adn_parse and sim_adn_build.

Also fix the number length passed to extract_bcd_number in sim_adn_parse.
2009-08-31 15:12:37 -05:00