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


Change subject: es9p_client: Fix type conversion in installation result 
notification
......................................................................

es9p_client: Fix type conversion in installation result notification

The asn.1 encoder expects bytes-like objects, we cannot simply pass
hex-strings to it without conversion

Change-Id: I83ad047e043dc6b3462b188ce6dd0b2cc0e52e87
---
M contrib/es9p_client.py
1 file changed, 3 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/pysim refs/changes/73/41973/1

diff --git a/contrib/es9p_client.py b/contrib/es9p_client.py
index da7a055..44a5a37 100755
--- a/contrib/es9p_client.py
+++ b/contrib/es9p_client.py
@@ -128,11 +128,11 @@

         if self.opts.operation == 'download':
             pird = {
-                'transactionId': self.opts.transaction_id,
+                'transactionId': h2b(self.opts.transaction_id),
                 'notificationMetadata': ntf_metadata,
                 'finalResult': ('successResult', {
-                    'aid': self.opts.isdp_aid,
-                    'simaResponse': self.opts.sima_response,
+                    'aid': h2b(self.opts.isdp_aid),
+                    'simaResponse': h2b(self.opts.sima_response),
                     }),
             }
             if self.opts.smdpp_oid:

--
To view, visit https://gerrit.osmocom.org/c/pysim/+/41973?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: I83ad047e043dc6b3462b188ce6dd0b2cc0e52e87
Gerrit-Change-Number: 41973
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <[email protected]>

Reply via email to