From 713ce2cf869f9a3ad325ace03574af22b9ae321e Mon Sep 17 00:00:00 2001 From: Pau Espin Pedrol Date: Thu, 24 Aug 2017 16:57:17 +0200 Subject: Introduce auth_algo modem config attribute Algorithm to use to generate response for the challenge during authentication time is hardcoded in the sim card and cannot be easily changed. Thus specify in the config of each modem the algorithm used by the SIM Card. This attribute is used add subscriber_add() time, when the IMSI, KI and algorithm to use in the MSC to authenticate a given subscriber is stored in the database. This way we can easily set up a specific algorithm for each SimCard/Modem, in case different SimCards are configured with different algorithms. This can be used to specificially test different algorithms too. For instance, let's imagine we have 2 simcards, one configured to use comp128v1 and another one with xor, and we create a test which ckecks that XOR is algo is working fine. We don't want to accidentally select the modem with comp128v1 in this case. Thus we can use this attribute to create a scenario file matching 'auth_algo: xor' to ensure always the correct modem is picked. Change-Id: Ifdf74630afeb05452994bbc9eb62a745a1d745ce --- example/resources.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example') diff --git a/example/resources.conf b/example/resources.conf index 2f08c93..f190c2f 100644 --- a/example/resources.conf +++ b/example/resources.conf @@ -55,18 +55,22 @@ modem: path: '/sierra_1' imsi: '901700000009031' ki: '80A37E6FDEA931EAC92FFA5F671EFEAD' + auth_algo: 'xor' - label: sierra_2 path: '/sierra_2' imsi: '901700000009029' ki: '00969E283349D354A8239E877F2E0866' + auth_algo: 'xor' - label: gobi_0 path: '/gobi_0' imsi: '901700000009030' ki: 'BB70807226393CDBAC8DD3439FF54252' + auth_algo: 'xor' - label: gobi_3 path: '/gobi_3' imsi: '901700000009032' ki: '2F70DCA43C45ACB97E947FDD0C7CA30A' + auth_algo: 'xor' -- cgit v1.2.3