Change in pysim[master]: commands: check for status word in USIM authenticate command

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Sat May 22 20:39:27 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/pysim/+/24334 )

Change subject: commands: check for status word in USIM authenticate command
......................................................................

commands: check for status word in USIM authenticate command

Change-Id: I4c7e7261dd597cef0825826b36d50a144efa90d9
---
M pySim/commands.py
1 file changed, 1 insertion(+), 1 deletion(-)

Approvals:
  Jenkins Builder: Verified
  laforge: Looks good to me, approved



diff --git a/pySim/commands.py b/pySim/commands.py
index 0b3d9b6..83ad167 100644
--- a/pySim/commands.py
+++ b/pySim/commands.py
@@ -359,7 +359,7 @@
 			p2 = '81'
 		elif context == 'gsm':
 			p2 = '80'
-		(data, sw) = self._tp.send_apdu_constr(self.cla_byte, '88', '00', p2, AuthCmd3G, cmd_data, AuthResp3G)
+		(data, sw) = self._tp.send_apdu_constr_checksw(self.cla_byte, '88', '00', p2, AuthCmd3G, cmd_data, AuthResp3G)
 		if 'auts' in data:
 			ret = {'synchronisation_failure': data}
 		else:

-- 
To view, visit https://gerrit.osmocom.org/c/pysim/+/24334
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: I4c7e7261dd597cef0825826b36d50a144efa90d9
Gerrit-Change-Number: 24334
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210522/1176f5c8/attachment.htm>


More information about the gerrit-log mailing list