Change in pysim[master]: sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f'

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/.

herlesupreeth gerrit-no-reply at lists.osmocom.org
Thu Dec 24 08:16:39 UTC 2020


herlesupreeth has uploaded this change for review. ( https://gerrit.osmocom.org/c/pysim/+/21867 )


Change subject: sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f'
......................................................................

sysmoISIM-SJA2: Fill unused bytes of Home ePDGId with 'f'

Change-Id: Ia0464f230afcb0f37465d3ed0dfd8f417b53b0c3
---
M pySim/cards.py
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/67/21867/1

diff --git a/pySim/cards.py b/pySim/cards.py
index 9236e4e..60a0f38 100644
--- a/pySim/cards.py
+++ b/pySim/cards.py
@@ -274,7 +274,8 @@
 			return (None, sw)
 
 	def update_epdgid(self, epdgid):
-		epdgid_tlv = enc_addr_tlv(epdgid)
+		size = self._scc.binary_size(EF_USIM_ADF_map['ePDGId']) * 2
+		epdgid_tlv = rpad(enc_addr_tlv(epdgid), size)
 		data, sw = self._scc.update_binary(
 						EF_USIM_ADF_map['ePDGId'], epdgid_tlv)
 		return sw

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

Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ia0464f230afcb0f37465d3ed0dfd8f417b53b0c3
Gerrit-Change-Number: 21867
Gerrit-PatchSet: 1
Gerrit-Owner: herlesupreeth <herlesupreeth at gmail.com>
Gerrit-MessageType: newchange
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20201224/cb2a1ba7/attachment.htm>


More information about the gerrit-log mailing list