Fork 0
Commit Graph

32 Commits (master)

Author SHA1 Message Date
Harald Welte d54de7d353 remove osmo-gsup-hlr
remove osmo-gsup-hlr, which was moving to its own osmo-hlr.git on
November 11, 2016.
2016-12-21 11:23:36 +01:00
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
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
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 7fc5dcc49f move README of old CSV based AUC to 'src' 2016-04-28 21:16:30 +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
Harald Welte c5097633d0 CSV: store file offset of SQN so we can update it efficiently later
This requires that the SQN field is large enough (8 decimal digits), in
order to do in-place changes to the field in the CSV.
2012-09-16 09:18:53 +02:00
Harald Welte c74c6d8b17 add README file 2012-09-15 23:07:04 +02:00
Harald Welte a4656d703d add actual MAP component decoding and encoding (auc_map.c)
The code has not been properly integrated yet.  This patch simply adds
the required functionality but doesn't use it in any way yet.

We now depend on libosmo-asn1-map and libans1c.
2012-09-15 21:53:10 +02:00
Harald Welte fe0cb4bc58 egen_auc_txt.pl: Add a two-line description of what it is 2012-09-14 22:11:18 +02:00
Harald Welte 18a74f3e38 dynamically allocate hash table buckets based on init() call
we probably should move to a more tree-like data structure than a hash
table.  But well, lookup is not the most computationally expensive part
compared to the cryptographic operations.
2012-09-14 22:09:42 +02:00
Harald Welte bfe531b549 initial import of a minimalistic AUC (authentication center) core 2012-09-14 11:11:42 +02:00