clientfix

This commit is contained in:
Adolfo Gómez García 2019-04-23 14:01:36 +02:00
parent a7116b9e2e
commit bb84b64eb2

View File

@ -190,7 +190,7 @@ class UDSClient(QtGui.QMainWindow):
# * Signature
# * Script data
# We test that the Script has correct signature, and them execute it with the parameters
script, signature, params = res['script'].decode('base64').decode('bz2'), res['signature'], json.loads(res['params'].decode('base64').decode('bz2'))
script, signature, params = res['script'].decode('base64').decode('bz2_codec'), res['signature'], json.loads(res['params'].decode('base64').decode('bz2'))
if tools.verifySignature(script, signature) is False:
logger.error('Signature is invalid')