summaryrefslogtreecommitdiffstats
path: root/osmo-gsup-hlr
AgeCommit message (Collapse)AuthorFilesLines
2016-05-05LU: correctly determine and use is_psHarald Welte1-3/+2
Don't use a local uninitialized variable but the luop->is_ps instead.
2016-05-05implement PURGE-MS from VLR/SGSN to HLRHarald Welte4-0/+92
Using this procedure, the VLR/SGSN can set the cs/ps purged flag for the subscriber. We might not even need to store this persistent in the database according to spec, but let's do it anyway, at least until it turns out to be a performance issue.
2016-05-05some more comment / todo updatesHarald Welte2-0/+6
2016-05-05AUC: use osmo_hexparse() when reading key material from dbHarald Welte1-4/+6
The database stores the key material as hex-ascii, we thus need to go through osmo_hexparse() when reading. We could also store the material as BLOB in the database. That would however complicate matters, as it would basically mean using the sqlite3 command to manually inspect/modify data from the console would no longer be easily possible. Using this commit I have 2G authentication working against osmo-sgsn with GSUP and 'auth policy remote'.
2016-05-05State number of auth vectors in SAI responseHarald Welte1-1/+3
2016-05-05AUC: Differentiate between actual error and unknown IMSIHarald Welte2-11/+34
When responding to a SendAuthInfo.req, we need to differentiate an error case caused by an unknown IMSI, or an error caused by an error regarding accessing the database or data integrity.
2016-05-03populate_hlr_db.pl: Script to generate a HLR databaseHarald Welte1-0/+75
It currently creates a database with 1 million subscribers, all of which are provisioned for both 2G and 3G authentication using the same key material.
2016-05-03add copyright statements to all filesHarald Welte2-0/+38
2016-05-03db_auc: remove some debugging code about column typesHarald Welte1-4/+0
2016-05-03db: Use Write-Ahead Logging mode of SQLite3Harald Welte1-0/+6
2016-05-03Major update; Code now supports SAI, LU and ISD transactionsHarald Welte9-11/+695
We also introduce a 'gsup_router' which enables us to route a transaction to a given VLR. It works based on the SERIAL attribute communicated at time of the IPA multiplex setup as part of the CCM sub-protocol.
2016-05-03hlr.sql: Don't use TRUE/FALSE as DEFAULT, they will be strings :(Harald Welte1-4/+5
SQLite has this crappy type system where you can put a string into a boolean or integer column, which of course will break once you try to read it as bool.. Also, add an index by IMSI to the SUBSCRIBER table.
2016-04-28Fix memory leakage in gsup_serverHarald Welte1-2/+3
Once a remote IPA client is gone, we need to remove the associated osmo_gsup_conn object.
2016-04-28ensure we release memory for all received msgb.Harald Welte2-1/+2
2016-04-28hlr: install signal handlers for SIGINT/USR1/HUPHarald Welte1-1/+28
2016-04-28more verbose error handling in osmo_gsup_server_read_cb()Harald Welte1-5/+13
2016-04-28gsup_server: Implement IPA CCM handling using new libosmo-abis functionHarald Welte1-29/+25
2016-04-28initial import of osmo-gsup-hlr code so farHarald Welte18-0/+1145