summaryrefslogtreecommitdiffstats
path: root/src/simutil.c
AgeCommit message (Collapse)AuthorFilesLines
2010-08-26simutil: Fix compilation with gcc 4.3.2Andrzej Zaborowski1-2/+2
This gcc version gives two signed / unsigned comparison warnings.
2010-08-23sim: Read EFust and EFestYang Gu1-0/+18
2010-06-09simutil: Remove unneeded forward-declarationDenis Kenzior1-44/+42
2010-06-09simutil: Fix MMC MNC encoding for 2-digit MNCs.Andrzej Zaborowski1-11/+8
2010-06-09util: Add a "sim string" encoding utility.Andrzej Zaborowski1-15/+10
2010-05-26simutil: Make sim_adn_build use sim bcdDenis Kenzior1-1/+1
2010-05-26simutil: Add sim_encode_bcd_numberDenis Kenzior1-0/+53
2010-05-26simutil: Make sim_adn_parse use sim bcd versionDenis Kenzior1-1/+1
2010-05-26simutil: add sim_extract_bcd_numberDenis Kenzior1-0/+31
2010-05-25simutil: Add MMC MNC pair encoding utilityAndrzej Zaborowski1-0/+17
2010-05-25simutil: simplify ctlv logicDenis Kenzior1-77/+46
2010-05-25simutil: Simplify ber_tlv_builder_optimize logicDenis Kenzior1-9/+12
2010-05-25simutil: Simplify ber_tlv builder set_length logicDenis Kenzior1-13/+5
2010-05-25simutil: Simplify builder_write_headerDenis Kenzior1-35/+34
2010-05-25simutil: Be more type-correctDenis Kenzior1-1/+1
2010-05-25simutil: Get rid of ugly-named functionsDenis Kenzior1-13/+8
Replace them by macros
2010-05-25simutil: Add utilities for encoding BTLV and CTLVAndrzej Zaborowski1-0/+310
2010-05-13simutil: Add comprehension tlv copyYang Gu1-0/+12
Can be used to save the state of the current iterator and 'peek' ahead.
2010-04-22Fix CTLV three-byte tag parsing.Andrzej Zaborowski1-6/+6
2010-03-25Make the function to parse mcc and mnc publicYang Gu1-3/+3
2010-02-23Add COMPREHENSION TLV iterator utilitiesDenis Kenzior1-0/+115
2010-02-23Add Simple TLV iterator utilitiesDenis Kenzior1-0/+87
2010-02-23Fix: EFspdi parsingDenis Kenzior1-3/+11
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-23Rewrite ber_tlv_find_tag to use ber_tlv iteratorDenis Kenzior1-30/+9
2010-02-23Move from header to implementationDenis Kenzior1-0/+2
2010-02-23Add BER-TLV iterator utilitiesDenis Kenzior1-0/+147
2010-01-01Update copyright informationMarcel Holtmann1-1/+1
2009-10-04Fix pointer size problem with GUINT_TO_POINTER and unsigned shortMarcel Holtmann1-1/+1
2009-10-02Fix: Make const correctDenis Kenzior1-2/+2
2009-10-02Fix: Add additional error checkingDenis Kenzior1-1/+4
2009-10-02Use small caps for 2G/3G functionsDenis Kenzior1-2/+2
2009-10-02Add utility to parse 3G get response dataDenis Kenzior1-0/+109
Based on ETSI 102.221
2009-10-02Add utility to parse 2G GET_RESPONSE dataDenis Kenzior1-0/+22
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-02Add utility to lookup files in EF dbDenis Kenzior1-1/+21
2009-10-02Add basic elementary file databaseDenis Kenzior1-0/+62
2009-09-25Fix segmentation fault from SIM reading on Calypso modemMarcel Holtmann1-0/+3
2009-09-22Move some stuff aroundDenis Kenzior1-36/+0
2009-09-22Do PIN authenticationAndrzej Zaborowski1-0/+36
This adds checking whether PIN is required during SIM initialisation and delaying the sim ready notifications until after correct PIN is given.
2009-08-31Simplify nested ifsDenis Kenzior1-15/+15
2009-08-31Simplify overly complicated codeDenis Kenzior1-16/+16
2009-08-31Decode and encode alpha-identifier fieldsAndrzej Zaborowski1-5/+37
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-20Use types.h instead of driver.h hereDenis Kenzior1-1/+1
2009-08-07Fix sim ADN type of number handlingDenis Kenzior1-2/+2
The type of number stored here is not quite the same as SMS number, and should be parsed differently
2009-08-06Fix styleDenis Kenzior1-2/+2
2009-08-06Fix styleDenis Kenzior1-2/+5
2009-08-06No spaces between variable and ++/--Denis Kenzior1-7/+7
2009-08-05Add utility for building ADN recordsAndrzej Zaborowski1-0/+27
Used to populate MSISDN, MBDN, etc records on the SIM
2009-07-31Clean up in sim.c.Andrzej Zaborowski1-0/+28
Remove unused variables and fields. Move EFadn format parsing to a common function because various files use this same format.
2009-07-17Clean-up in sim.c.Andrzej Zaborowski1-5/+17
2009-07-17Make PNN / OPL work.Andrzej Zaborowski1-4/+8