Small change
This commit is contained in:
parent
7f3b4e396c
commit
4a7b1b7377
Binary file not shown.
@ -289,8 +289,7 @@ class MSL:
|
|||||||
msl_keys.rsa = RSA.importKey(msl_keys.rsa)
|
msl_keys.rsa = RSA.importKey(msl_keys.rsa)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def generate_msg_header(message_id, sender, is_handshake, userauthdata=None, keyrequestdata=None,
|
def generate_msg_header(message_id, sender, is_handshake, userauthdata=None, keyrequestdata=None, compression="GZIP"):
|
||||||
compression="GZIP"):
|
|
||||||
"""
|
"""
|
||||||
The MSL header carries all MSL data used for entity and user authentication, message encryption
|
The MSL header carries all MSL data used for entity and user authentication, message encryption
|
||||||
and verification, and service tokens. Portions of the MSL header are encrypted.
|
and verification, and service tokens. Portions of the MSL header are encrypted.
|
||||||
@ -343,7 +342,7 @@ class MSL:
|
|||||||
|
|
||||||
def send_message(self, endpoint, params, application_data, userauthdata=None):
|
def send_message(self, endpoint, params, application_data, userauthdata=None):
|
||||||
message = self.create_message(application_data, userauthdata)
|
message = self.create_message(application_data, userauthdata)
|
||||||
res = self.session.post(url=endpoint, data=message, params=params, verify=False) # verify=True?
|
res = self.session.post(url=endpoint, data=message, params=params, verify=True) # verify=True?
|
||||||
header, payload_data = self.parse_message(res.text)
|
header, payload_data = self.parse_message(res.text)
|
||||||
if "errordata" in header:
|
if "errordata" in header:
|
||||||
raise self.log.exit(
|
raise self.log.exit(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user