From aa4ed671643c1d7bcd0ae05faa9aef236d9ad5ff Mon Sep 17 00:00:00 2001 From: Neels Hofmeyr Date: Sun, 22 Apr 2018 19:29:41 +0200 Subject: GERAN: allow GSM SRES on UMTS AKA challenge Store the established security context type (GSM or UMTS) instead of the boolean flag is_authenticated. Provide the previous boolean query with thin sgsn_mm_ctx_is_authenticated() function. Knowing which security context was established will be necessary for OS#3224, i.e. using the proper ciphering key, which is not yet tested properly, and probably not correct at this stage. This change will make new SGSN_Tests.TC_attach_umts_aka_gsm_sres pass. Related: OS#3193 OS#3224 Change-Id: I36807bad3bc55c0030d4f09cb2c369714f24bec7 --- tests/sgsn/sgsn_test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/sgsn/sgsn_test.c') diff --git a/tests/sgsn/sgsn_test.c b/tests/sgsn/sgsn_test.c index df4df3b65..0e5267ba1 100644 --- a/tests/sgsn/sgsn_test.c +++ b/tests/sgsn/sgsn_test.c @@ -1132,7 +1132,7 @@ int my_subscr_request_auth_info_fake_auth(struct sgsn_mm_ctx *mmctx, const uint8 { /* Fake an authentication */ OSMO_ASSERT(mmctx->subscr); - mmctx->is_authenticated = 1; + mmctx->sec_ctx = OSMO_AUTH_TYPE_GSM; gprs_subscr_update_auth_info(mmctx->subscr); return 0; -- cgit v1.2.3