aboutsummaryrefslogtreecommitdiffstats
path: root/openbsc/src/osmo-cscn/iucs_ranap.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-04IuCS: upon sec mode compl, check that a sec op is pendingNeels Hofmeyr1-0/+8
Safety check: discard Security Mode Complete messages when there is no security operation pending.
2016-05-04msc: fix: two missing security operation releasesNeels Hofmeyr1-0/+1
When receiving authentication response or security mode complete messages, actually release the security operation stored with the subscriber conn.
2016-05-04msc: ignore cb retval on auth/sec mode rxNeels Hofmeyr1-4/+4
Just return 0 regardless of the security callback's return value when receiving authentication response or security mode complete messages.
2016-05-04IuCS: properly clean up conn on releaseNeels Hofmeyr1-1/+1
Don't call msc_subscr_con_free() directly, instead use gsm0408_clear_request(), which properly cleans up all pending operations before freeing the connection.
2016-05-02cosmetic: IuCS loggingNeels Hofmeyr1-1/+1
2016-04-19Iu RANAP event: add IU_EVENT_LINK_INVALIDATEDNeels Hofmeyr1-0/+1
See in-code comment...
2016-03-22cscn: implement integrity protectionNeels Hofmeyr1-0/+110
Upon authentication response, initiate integrity protection for Iu by sending a Security Mode Command (IK), with hardcoded auth tuple so far. Implement RANAP event handling to receive Security Mode Complete message, adding stubs for the other events; in new files osmo-cscn/iucs_ranap.[hc] to keep RANAP dependencies separate, and particularly out of libmsc. Upon receiving Security Mode Complete, call the security operation callback (conn->sec_operation->cb) to complete the Location Update. Introduce enum integrity_protection_state constants to indicate integrity protection, record in gsm_subscriber_conn.iu.integrity_protection. Make subscr_conn_lookup_iu() non-static and declare in iu_cs.h to be able to call from iucs_ranap.c's Security Mode Complete event. Implement dummy iu_tx_sec_mode_cmd() to allow tests to build without RANAP dependencies. In cscn_main.c, call iucs_rx_ranap_event(), to populate the struct gsm_network struct with cscn_network explicitly (don't share cscn_network across compilation scopes because it's ugly).