<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/pysim/+/23209">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">filesystem: decode select response for MF<br><br>We always use the select response parser from the parent file. The usual<br>case will be that on the way up at least one parent has overloeaded the<br>response parser from the MF. However, this is not the case when an EF at<br>the top level is selected, then we will just get the hexdump of the<br>response since no response parser is available. Lets add a response<br>parser for the MF as well so that we always parse the select response.<br><br>Change-Id: Ib2b2476fc0e7d34cdacf7eb100ffadceb788c4d2<br>Related: OS#4963<br>---<br>M pySim/filesystem.py<br>1 file changed, 3 insertions(+), 1 deletion(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/09/23209/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/pySim/filesystem.py b/pySim/filesystem.py</span><br><span>index 71392fa..a1f9b8e 100644</span><br><span>--- a/pySim/filesystem.py</span><br><span>+++ b/pySim/filesystem.py</span><br><span>@@ -34,6 +34,8 @@</span><br><span> from pySim.utils import sw_match, h2b, b2h</span><br><span> from pySim.exceptions import *</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+import pySim.ts_51_011</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span> class CardFile(object):</span><br><span>     """Base class for all objects in the smart card filesystem.</span><br><span>     Serve as a common ancestor to all other file types; rarely used directly.</span><br><span>@@ -241,8 +243,8 @@</span><br><span> </span><br><span>     def decode_select_response(self, data_hex):</span><br><span>         """Decode the response to a SELECT command."""</span><br><span style="color: hsl(0, 100%, 40%);">-        return data_hex</span><br><span> </span><br><span style="color: hsl(120, 100%, 40%);">+        return pySim.ts_51_011.decode_select_response(data_hex)</span><br><span> </span><br><span> </span><br><span> class CardADF(CardDF):</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/pysim/+/23209">change 23209</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/pysim/+/23209"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: pysim </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ib2b2476fc0e7d34cdacf7eb100ffadceb788c4d2 </div>
<div style="display:none"> Gerrit-Change-Number: 23209 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>