simauth: Update simauth to handle AUTS parameter
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
@@ -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
@@ -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
Denis Kenzior
AppliedHi 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