This commit is contained in:
parent
540044c259
commit
101a8ab8d6
@ -51,8 +51,6 @@ class NetWrapper:
|
|||||||
def serverIdentify(self, msg: bytes) -> None:
|
def serverIdentify(self, msg: bytes) -> None:
|
||||||
incommingJson = json.loads(msg.decode('UTF-8'))
|
incommingJson = json.loads(msg.decode('UTF-8'))
|
||||||
header = json.loads(b64decode(incommingJson['header']).decode('UTF-8'))
|
header = json.loads(b64decode(incommingJson['header']).decode('UTF-8'))
|
||||||
if incommingJson['type'] != "IDY":
|
|
||||||
raise Exception('Wrong message type encountered')
|
|
||||||
try:
|
try:
|
||||||
if not self.verifyRSAHeaderSignature(b64decode(incommingJson['header']),
|
if not self.verifyRSAHeaderSignature(b64decode(incommingJson['header']),
|
||||||
b64decode(incommingJson['headersignature'])) or header[
|
b64decode(incommingJson['headersignature'])) or header[
|
||||||
|
Loading…
Reference in New Issue
Block a user