Skip to contentSkip to conversation

simauth: Update simauth to handle AUTS parameter

PATCH Applied James Prestwood 2 participants 2 messages Oct 20, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 simauth: Update simauth to handle AUTS parameter

The support for an invalid SQN number was incomplete in the simauth module. The SIM should have an internal SQN stored (default.xml now) and verify that the SQN in AUTN matches. If not, then generate AUTS and send that back.

---
 src/default.xml |  2 +-
 src/simauth.cpp | 77 ++++++++++++++++++++++++++++++++++++++++++---------------
 src/simauth.h   |  3 +++
 3 files changed, 61 insertions(+), 21 deletions(-)
src/default.xml +1 -1
index c70b907..39b0216 100644
@@ -315,7 +315,7 @@
     <set name="SIMSTATE" value="1" />
 
 <!-- SIM Auth -->
-<simauth ki="90dca4eda45b53cf0f12d7c9c3bc6a89" opc="cb9cccc4b9258e6dca4760379fb82581">
+<simauth ki="90dca4eda45b53cf0f12d7c9c3bc6a89" opc="cb9cccc4b9258e6dca4760379fb82581" sqn="000000000021">
         <aid>61184F10A0000000871004FFFFFFFF890619000050044953494DFFFFFFFFFFFFFF</aid>
         <aid>61184F10A0000000871002FFFFFFFF890619000050045553494DFFFFFFFFFFFFFF</aid>
 </simauth>
src/simauth.cpp +57 -20

122 lines not on this page · raw message

src/simauth.h +3 -0
index eb733f6..a66ea52 100644
@@ -70,6 +70,9 @@ private:
     // operator variant algorithm configuration field
     QString _opc;
 
+    // Sequence number stored on SIM
+    QString _sqn;
+
     // arbitrary session ID starting number
     int _session_start;
 
Signature · 1 line
2.7.4
#1 lore raw

Hi James,

Quoted 10 lines · James Prestwood

The support for an invalid SQN number was incomplete in the simauth module. The SIM should have an internal SQN stored (default.xml now) and verify that the SQN in AUTN matches. If not, then generate AUTS and send that back.

---
  src/default.xml |  2 +-
  src/simauth.cpp | 77 ++++++++++++++++++++++++++++++++++++++++++---------------
  src/simauth.h   |  3 +++
  3 files changed, 61 insertions(+), 21 deletions(-)

Applied, thanks.

Regards,
-Denis