From ef9fa87ac9052521b55fe20b24e20f3bd1939fc7 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Mon, 22 Jan 2018 03:00:17 +0100 Subject: [PATCH] msc: Prepare authentication support Change-Id: I930bed1907fd0faf61788cf14e75f2b2337572f4 --- library/GSUP_Types.ttcn | 3 +++ msc_tests/BSC_ConnectionHandler.ttcn | 2 ++ 2 files changed, 5 insertions(+) diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn index ac85fca2a..7455085ce 100644 --- a/library/GSUP_Types.ttcn +++ b/library/GSUP_Types.ttcn @@ -139,6 +139,9 @@ template GSUP_PDU ts_GSUP(GSUP_MessageType msgt, GSUP_IEs ies := {}) := { template GSUP_PDU ts_GSUP_SAI_REQ(hexstring imsi) := ts_GSUP(OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST, { valueof(ts_GSUP_IE_IMSI(imsi)) }); +template GSUP_PDU tr_GSUP_SAI_REQ(template hexstring imsi) := + tr_GSUP(OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST, { tr_GSUP_IE_IMSI(imsi), * }); + template GSUP_PDU tr_GSUP_SAI_ERR(template hexstring imsi, template integer cause) := tr_GSUP(OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST, { tr_GSUP_IE_IMSI(imsi), tr_GSUP_IE_Cause(cause) }); diff --git a/msc_tests/BSC_ConnectionHandler.ttcn b/msc_tests/BSC_ConnectionHandler.ttcn index 402448e33..d3dcd29c8 100644 --- a/msc_tests/BSC_ConnectionHandler.ttcn +++ b/msc_tests/BSC_ConnectionHandler.ttcn @@ -147,7 +147,9 @@ runs on BSC_ConnHdlr { BSSAP.send(ts_BSSMAP_ClassmarkUpd(g_pars.cm2, g_pars.cm3)); if (expect_auth) { + GSUP.receive(tr_GSUP_SAI_REQ(g_pars.imsi)); /* FIXME */ + //GSUP.send(tr_GSUP_SAI_RES()); } /* Expect MSC to perform LU with HLR */