Commit Graph

2 Commits

Author SHA1 Message Date
Oliver Smith fca8a0a935 src/hlr.c: resolve/scramble pseudo IMSI in GSUP
Resolve the pseudonymous IMSI to the real IMSI as soon as possible, when
a GSUP message arrives. Use the real IMSI internally in OsmoHLR, so the
existing logic does not need to be changed. Scramble the IMSI back to the
pseudonymous IMSI in one common place (gsup_server_send_req_response)
right before responding to GSUP messages.

Related: OS#4476
Change-Id: I400810f96efca7746dd4ba1bed666acaea425e8a
2020-05-06 15:09:01 +02:00
Oliver Smith 7b4e5b1390 VTY: alloc/dealloc/show imsi pseudo
Create VTY commands and related database functions to get, allocate and
deallocate pseudonymous IMSIs. As this is a proof of concept, the code
to retrieve the next pseudonymous IMSI has no performance optimizations
and might not use a good entropy source (I did not verify).

Related: OS#4476
Change-Id: Ia93ee58d5e03c801eb774b9483a9a4417d031959
2020-05-06 13:42:26 +02:00