9
0
Fork 0
Commit Graph

24 Commits

Author SHA1 Message Date
Max 8076c87c6b Fix broken compilation
The compilation with newver libosmocore was broken due to introduction
of DLGSUP define there. Fix it by renaming DLGSUP -> DGSUP.
2016-12-19 19:41:28 +01:00
Max 50d7a8ef60 Add hardcoded APN
Add APN '*' to PDP info part of GSUP response to make SGSN 'auth-policy
remote' testing easier.
2016-07-01 15:19:23 +02:00
Max cfaf968a17 Fix build on Ubuntu
Linked libraries supposed to come _after_ the objects which uses
functions from them.
2016-06-30 12:58:49 +02:00
Harald Welte 1e5454467e fix authentication re-sync (pass RAND+AUTS along) 2016-06-10 17:34:02 +02:00
Harald Welte f1b793f203 fix PURGE_MS sqlite3 access 2016-06-10 17:33:38 +02:00
Harald Welte 09ccb6308e LU: remote oudated FIXME comments 2016-05-05 21:05:17 +02:00
Harald Welte 590eb20620 LU: correctly determine and use is_ps
Don't use a local uninitialized variable but the luop->is_ps instead.
2016-05-05 21:04:11 +02:00
Harald Welte 82a583b6ba implement PURGE-MS from VLR/SGSN to HLR
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-05 21:03:03 +02:00
Harald Welte 17cbcb733b some more comment / todo updates 2016-05-05 18:24:15 +02:00
Harald Welte 6294b3a19e AUC: use osmo_hexparse() when reading key material from db
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-05 17:08:48 +02:00
Harald Welte 9239c1a615 State number of auth vectors in SAI response 2016-05-05 16:50:39 +02:00
Harald Welte 06db912aaa AUC: Differentiate between actual error and unknown IMSI
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-05 16:38:14 +02:00
Harald Welte 508ede80da populate_hlr_db.pl: Script to generate a HLR database
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-03 18:51:40 +02:00
Harald Welte 7df17ce67e add copyright statements to all files 2016-05-03 18:51:18 +02:00
Harald Welte 0c3b7f0002 db_auc: remove some debugging code about column types 2016-05-03 18:51:04 +02:00
Harald Welte 2bb6f91a56 db: Use Write-Ahead Logging mode of SQLite3 2016-05-03 18:50:41 +02:00
Harald Welte 3596f92fad Major update; Code now supports SAI, LU and ISD transactions
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-03 18:49:27 +02:00
Harald Welte b565a56607 hlr.sql: Don't use TRUE/FALSE as DEFAULT, they will be strings :(
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-05-03 18:48:12 +02:00
Harald Welte 6d344d5190 Fix memory leakage in gsup_server
Once a remote IPA client is gone, we need to remove the associated
osmo_gsup_conn object.
2016-04-28 12:57:10 +02:00
Harald Welte 19c8c2c9b1 ensure we release memory for all received msgb. 2016-04-28 12:48:39 +02:00
Harald Welte b36b99b96e hlr: install signal handlers for SIGINT/USR1/HUP 2016-04-28 12:48:14 +02:00
Harald Welte 3e8427dc2b more verbose error handling in osmo_gsup_server_read_cb() 2016-04-28 11:13:15 +02:00
Harald Welte 1b80f77f83 gsup_server: Implement IPA CCM handling using new libosmo-abis function 2016-04-28 11:13:04 +02:00
Harald Welte 7e90016009 initial import of osmo-gsup-hlr code so far 2016-04-28 07:18:49 +02:00