Change in ...pysim[master]: Make programming OPC optional

laforge gerrit-no-reply at lists.osmocom.org
Wed Aug 28 21:20:53 UTC 2019


laforge has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/15311


Change subject: Make programming OPC optional
......................................................................

Make programming OPC optional

Change-Id: Ic600c325557918cb7d5b1fb179c01936a078c96c
---
M pySim/cards.py
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/11/15311/1

diff --git a/pySim/cards.py b/pySim/cards.py
index a341b71..cb42d83 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -582,9 +582,9 @@
 		data, sw = self._scc.update_binary('00FF', p['ki'])
 
 		# set OPc in proprietary file
-		content = "01" + p['opc']
-		data, sw = self._scc.update_binary('00F7', content)
-
+		if 'opc' in p:
+			content = "01" + p['opc']
+			data, sw = self._scc.update_binary('00F7', content)
 
 		# write EF.IMSI
 		data, sw = self._scc.update_binary('6f07', enc_imsi(p['imsi']))

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ic600c325557918cb7d5b1fb179c01936a078c96c
Gerrit-Change-Number: 15311
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at gnumonks.org>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190828/179b4a6c/attachment.html>


More information about the gerrit-log mailing list