laforge has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/pysim/+/38907?usp=email )


Change subject: esim.saip.File: Proper ARR conversion of template (into) to 
file (bytes)
......................................................................

esim.saip.File: Proper ARR conversion of template (into) to file (bytes)

The encoding of the access rule reference is different in FileTemplate
vs File, let's make sure we properly convert it when instantiating a
File from a FileTemplate.

Change-Id: Ibb8afb85cc0006bc5c59230ebf28b2c0c1a8a8ed
---
M pySim/esim/saip/__init__.py
1 file changed, 1 insertion(+), 1 deletion(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/07/38907/1

diff --git a/pySim/esim/saip/__init__.py b/pySim/esim/saip/__init__.py
index 163c91b..40ef4ce 100644
--- a/pySim/esim/saip/__init__.py
+++ b/pySim/esim/saip/__init__.py
@@ -178,7 +178,7 @@
         self.file_type = template.file_type
         self.fid = template.fid
         self.sfi = template.sfi
-        self.arr = template.arr
+        self.arr = template.arr.to_bytes(1)
         if hasattr(template, 'rec_len'):
             self.rec_len = template.rec_len
         else:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/38907?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: Ibb8afb85cc0006bc5c59230ebf28b2c0c1a8a8ed
Gerrit-Change-Number: 38907
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>

Reply via email to