GSUP_Types.ttcn: add tr_GSUP_SAI_REQ_UMTS_AKA_RESYNC
Match only on AKA RESYNC packages
Change-Id: Ibab8a76fde78db6e7a84794e0b641bcb7b1fd1a7
diff --git a/library/GSUP_Types.ttcn b/library/GSUP_Types.ttcn
index ba8180f..0d21404 100644
--- a/library/GSUP_Types.ttcn
+++ b/library/GSUP_Types.ttcn
@@ -299,6 +299,17 @@
template GSUP_PDU tr_GSUP_SAI_REQ(template hexstring imsi) :=
tr_GSUP_IMSI(OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST, imsi);
+template GSUP_PDU tr_GSUP_SAI_REQ_UMTS_AKA_RESYNC(
+ template hexstring imsi,
+ template octetstring auts,
+ template octetstring rand) :=
+ tr_GSUP(OSMO_GSUP_MSGT_SEND_AUTH_INFO_REQUEST, {
+ tr_GSUP_IE_IMSI(imsi),
+ tr_GSUP_IE_AUTS(auts),
+ tr_GSUP_IE_RAND(rand),
+ *
+ });
+
template (value) GSUP_PDU ts_GSUP_SAI_RES(hexstring imsi, GSUP_IE auth_tuple) :=
ts_GSUP(OSMO_GSUP_MSGT_SEND_AUTH_INFO_RESULT, {
valueof(ts_GSUP_IE_IMSI(imsi)), auth_tuple });
@@ -464,6 +475,14 @@
}
}
+template GSUP_IE tr_GSUP_IE_AUTS(template octetstring auts) := {
+ tag := OSMO_GSUP_AUTS_IE,
+ len := ?,
+ val := {
+ auts := auts
+ }
+}
+
template (value) GSUP_IE ts_GSUP_IE_RAND(octetstring rand) := {
tag := OSMO_GSUP_RAND_IE,
len := 0, /* overwritten */
@@ -472,6 +491,14 @@
}
}
+template GSUP_IE tr_GSUP_IE_RAND(template octetstring rand) := {
+ tag := OSMO_GSUP_RAND_IE,
+ len := ?,
+ val := {
+ rand := rand
+ }
+}
+
template (value) GSUP_IE ts_GSUP_IE_SRES(octetstring sres) := {
tag := OSMO_GSUP_SRES_IE,
len := 0, /* overwritten */