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
This commit is contained in:
@@ -128,12 +128,12 @@ class Es9pClient:
|
|||||||
|
|
||||||
if self.opts.operation == 'download':
|
if self.opts.operation == 'download':
|
||||||
pird = {
|
pird = {
|
||||||
'transactionId': self.opts.transaction_id,
|
'transactionId': h2b(self.opts.transaction_id),
|
||||||
'notificationMetadata': ntf_metadata,
|
'notificationMetadata': ntf_metadata,
|
||||||
'smdpOid': self.opts.smdpp_oid,
|
'smdpOid': self.opts.smdpp_oid,
|
||||||
'finalResult': ('successResult', {
|
'finalResult': ('successResult', {
|
||||||
'aid': self.opts.isdp_aid,
|
'aid': h2b(self.opts.isdp_aid),
|
||||||
'simaResponse': self.opts.sima_response,
|
'simaResponse': h2b(self.opts.sima_response),
|
||||||
}),
|
}),
|
||||||
}
|
}
|
||||||
pird_bin = rsp.asn1.encode('ProfileInstallationResultData', pird)
|
pird_bin = rsp.asn1.encode('ProfileInstallationResultData', pird)
|
||||||
|
|||||||
Reference in New Issue
Block a user